Add return key

This commit is contained in:
Unrud 2022-01-27 07:17:23 +01:00
parent 957e116305
commit 5da7b376c9
10 changed files with 179 additions and 16 deletions

View file

@ -51,6 +51,7 @@ var KEY_HOME = 13;
var KEY_END = 14;
var KEY_BACK_SPACE = 15;
var KEY_DELETE = 16;
var KEY_RETURN = 17;
var ws;
var pad;
@ -403,6 +404,7 @@ window.addEventListener("load", function() {
{id: "volumemutebutton", key: KEY_VOLUME_MUTE},
{id: "volumeupbutton", key: KEY_VOLUME_UP},
{id: "backspacebutton", key: KEY_BACK_SPACE},
{id: "returnbutton", key: KEY_RETURN},
{id: "deletebutton", key: KEY_DELETE},
{id: "homebutton", key: KEY_HOME},
{id: "endbutton", key: KEY_END},

Binary file not shown.

View file

@ -51,7 +51,7 @@
<div class="page hidden">
<div class="buttons">
<button id="backspacebutton"></button>
<button disabled></button>
<button id="returnbutton"></button>
<button id="deletebutton"></button>
</div>
<div class="buttons">

View file

@ -199,8 +199,3 @@ textarea {
width: 8rem;
min-width: 0;
}
#keys .buttons > button:disabled {
border-top: none;
border-bottom: none;
}