Add floating soft keyboard input

This commit is contained in:
2017-09-09 14:38:03 +02:00
committed by MightyPork
parent d82c33d774
commit 7576cd859a
4 changed files with 56 additions and 10 deletions
+15 -6
View File
@@ -21,6 +21,7 @@ body.term {
padding: 6px;
display: inline-block;
border: 2px solid #3983CD;
position: relative;
font-size: 20px; // some font heights cause visual glitches with some font renderers. This should be configurable.
font-family: $screen-stack;
@@ -28,6 +29,20 @@ body.term {
canvas.selectable {
cursor: text;
}
// Dummy input field used to open soft keyboard
#softkb-input {
position: absolute;
// compensate for padding
top: 6px;
left: 6px;
width: 1em;
height: 1em;
background: none;
border: none;
resize: none;
// visible for debugging. do opacity 0 later on
}
}
#action-buttons {
@@ -99,12 +114,6 @@ body.term {
text-align: center;
}
// Dummy input field used to open android keyboard
#softkb-input {
position: absolute;
top: -9999px;
}
#fu_modal {
align-items: flex-start;
}