Skip to content

Commit 5703fbf

Browse files
committed
Ensured all dialogs set correct focus when brought up
1 parent c8c77e7 commit 5703fbf

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

public/createdialog.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<link rel="stylesheet" href="css/dialogstyles.css">
66
</head>
77

8-
<body>
8+
<body onload="containername.focus();">
99
<div class="dialog-container">
1010
<div class="dialog-inputs">
1111
<form>

public/js/terminaldialog.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@
6161
terminal.on('data', function (data) {
6262
socket.send(data)
6363
})
64+
65+
terminal.focus()
6466
}
6567
}
6668
}

public/logindialog.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<link rel="stylesheet" href="css/dialogstyles.css">
66
</head>
77

8-
<body>
8+
<body onload="username.focus();">
99
<div class="dialog-container">
1010
<div class="dialog-inputs">
1111
<form method="POST" action="/signin">

public/signupdialog.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<link rel="stylesheet" href="/css/dialogstyles.css">
66
</head>
77

8-
<body>
8+
<body onload="password.focus();">
99
<div class="dialog-container">
1010
<div class="signupmessage">
1111
<p>This is the first time you have started Voxel-DockerClient.</p>

0 commit comments

Comments
 (0)