Support the right and left control keys for vband

This commit is contained in:
Neale Pickett 2022-01-13 16:08:05 -07:00
parent 0113cb89df
commit 7bbffa5006
2 changed files with 4 additions and 2 deletions

View File

@ -1,3 +1,3 @@
#! /bin/sh
rsync -va static fozzie.woozle.org:/srv/vail/
rsync -va static melville.woozle.org:/srv/vail/

View File

@ -54,6 +54,7 @@ export class Keyboard {
if ((event.code == "KeyX") ||
(event.code == "Period") ||
(event.code == "BracketLeft") ||
(event.code == "ControlLeft") ||
(event.key == "[")) {
event.preventDefault()
this.keyer.Dit(down)
@ -61,6 +62,7 @@ export class Keyboard {
if ((event.code == "KeyZ") ||
(event.code == "Slash") ||
(event.code == "BracketRight") ||
(event.code == "ControlRight") ||
(event.key == "]")) {
event.preventDefault()
this.keyer.Dah(down)
@ -198,4 +200,4 @@ export function SetupAll(keyer) {
MIDI: new MIDI(keyer),
Gamepad: new Gamepad(keyer),
}
}
}