summaryrefslogtreecommitdiff
path: root/core/input/domkeytable.js
diff options
context:
space:
mode:
Diffstat (limited to 'core/input/domkeytable.js')
-rw-r--r--core/input/domkeytable.js9
1 files changed, 3 insertions, 6 deletions
diff --git a/core/input/domkeytable.js b/core/input/domkeytable.js
index 6028801..fdac483 100644
--- a/core/input/domkeytable.js
+++ b/core/input/domkeytable.js
@@ -15,23 +15,20 @@ import KeyTable from "./keysym.js";
const DOMKeyTable = {};
-function addStandard(key, standard)
-{
+function addStandard(key, standard) {
if (standard === undefined) throw "Undefined keysym for key \"" + key + "\"";
if (key in DOMKeyTable) throw "Duplicate entry for key \"" + key + "\"";
DOMKeyTable[key] = [standard, standard, standard, standard];
}
-function addLeftRight(key, left, right)
-{
+function addLeftRight(key, left, right) {
if (left === undefined) throw "Undefined keysym for key \"" + key + "\"";
if (right === undefined) throw "Undefined keysym for key \"" + key + "\"";
if (key in DOMKeyTable) throw "Duplicate entry for key \"" + key + "\"";
DOMKeyTable[key] = [left, left, right, left];
}
-function addNumpad(key, standard, numpad)
-{
+function addNumpad(key, standard, numpad) {
if (standard === undefined) throw "Undefined keysym for key \"" + key + "\"";
if (numpad === undefined) throw "Undefined keysym for key \"" + key + "\"";
if (key in DOMKeyTable) throw "Duplicate entry for key \"" + key + "\"";