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.
@@ -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(""), "ESC", "SPACE"], // Set of symbols to display; array perfered
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "virtual-keypad",
3
- "version": "5.5.0",
3
+ "version": "5.6.0",
4
4
  "description": "User response at a distance. Simple utility to summon forth a virtual keypad webapp.",
5
5
  "main": "dist/main.js",
6
6
  "directories": {
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: 2rem;
121
+ font-size: 1.5rem;
122
122
  grid-column: 1;
123
123
  grid-row: 1;
124
124
  }
125
- .response-button#ESC {
125
+ .response-button#RETURN {
126
126
  /* TODO actually make sure test doesn't clip */
127
- font-size: 2rem;
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 esc| <- keypad-control-keys
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", "ESC"].includes(symbol.toUpperCase())){
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);