virtual-keypad 5.5.0 → 5.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/receiver.html +1 -1
- package/package.json +1 -1
- package/src/keypad.css +3 -3
- package/src/keypad.js +2 -2
package/dist/receiver.html
CHANGED
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
let keypad_options = {
|
|
76
76
|
// Specify a 'keypadUrl' field to redirect to a keypad hosted elsewhere
|
|
77
77
|
// FUTURE should be able to have a visual keypress or not from here
|
|
78
|
-
alphabet: [..."CDHKNORSVZ".split(""), "
|
|
78
|
+
alphabet: [..."CDHKNORSVZ".split(""), "RETURN", "SPACE"], // Set of symbols to display; array perfered
|
|
79
79
|
font: "Arial", // Supported font, in which to display letters
|
|
80
80
|
targetElementId: "display", // id of the the div where messages should be displayed
|
|
81
81
|
visualResponseFeedback: false,
|
package/package.json
CHANGED
package/src/keypad.css
CHANGED
|
@@ -118,13 +118,13 @@
|
|
|
118
118
|
|
|
119
119
|
.response-button#SPACE {
|
|
120
120
|
/* TODO actually make sure test doesn't clip */
|
|
121
|
-
font-size:
|
|
121
|
+
font-size: 1.5rem;
|
|
122
122
|
grid-column: 1;
|
|
123
123
|
grid-row: 1;
|
|
124
124
|
}
|
|
125
|
-
.response-button#
|
|
125
|
+
.response-button#RETURN {
|
|
126
126
|
/* TODO actually make sure test doesn't clip */
|
|
127
|
-
font-size:
|
|
127
|
+
font-size: 1.5rem;
|
|
128
128
|
grid-column: 2;
|
|
129
129
|
grid-row: 1;
|
|
130
130
|
}
|
package/src/keypad.js
CHANGED
|
@@ -134,7 +134,7 @@ class Keypad extends KeypadPeer {
|
|
|
134
134
|
* |e f g h |
|
|
135
135
|
* |i j k l |
|
|
136
136
|
* ----------
|
|
137
|
-
* |space
|
|
137
|
+
* |space ret| <- keypad-control-keys
|
|
138
138
|
*/
|
|
139
139
|
// Keypad elem is a container for a message and all keys
|
|
140
140
|
const keypadElem = document.createElement("div");
|
|
@@ -259,7 +259,7 @@ class Keypad extends KeypadPeer {
|
|
|
259
259
|
// Add the label to the button
|
|
260
260
|
button.appendChild(buttonLabel);
|
|
261
261
|
// Add the labeled-button to the HTML
|
|
262
|
-
if (["SPACE", "
|
|
262
|
+
if (["SPACE", "RETURN"].includes(symbol.toUpperCase())){
|
|
263
263
|
document.querySelector("#keypad-control-keys").appendChild(button);
|
|
264
264
|
} else {
|
|
265
265
|
document.querySelector("#keypad-keys").appendChild(button);
|