Macros now work using the F keys
这个提交包含在:
父节点
b13f2b032c
当前提交
3e43e613c2
共有 1 个文件被更改,包括 27 次插入 和 0 次删除
|
|
@ -2,6 +2,33 @@ let function1Name, function1Macro, function2Name, function2Macro, function3Name,
|
|||
|
||||
getMacros();
|
||||
|
||||
document.addEventListener('keydown', function(event) {
|
||||
|
||||
if (event.key === 'F1') {
|
||||
event.preventDefault();
|
||||
morsekey_func1();
|
||||
}
|
||||
|
||||
if (event.key === 'F2') {
|
||||
event.preventDefault();
|
||||
morsekey_func2();
|
||||
}
|
||||
|
||||
if (event.key === 'F3') {
|
||||
event.preventDefault();
|
||||
morsekey_func3();
|
||||
}
|
||||
|
||||
if (event.key === 'F4') {
|
||||
event.preventDefault();
|
||||
morsekey_func4();
|
||||
}
|
||||
|
||||
if (event.key === 'F5') {
|
||||
event.preventDefault();
|
||||
morsekey_func5();
|
||||
}
|
||||
});
|
||||
|
||||
let sendText = document.getElementById("sendText");
|
||||
let sendButton = document.getElementById("sendButton");
|
||||
|
|
|
|||
正在加载…
在新工单中引用