mirror of https://github.com/nealey/vail.git
Add keys for vband compatibility
This commit is contained in:
parent
fc213369c1
commit
ad596546bb
|
@ -555,11 +555,19 @@ class Vail {
|
||||||
|
|
||||||
let begin = event.type.endsWith("down")
|
let begin = event.type.endsWith("down")
|
||||||
|
|
||||||
if ((event.code == "KeyX") || (event.code == "Period")) {
|
if ((event.code == "KeyX") ||
|
||||||
|
(event.code == "Period") ||
|
||||||
|
(event.code == "ControlLeft") ||
|
||||||
|
(event.code == "BracketLeft") ||
|
||||||
|
(event.key == "[")) {
|
||||||
event.preventDefault()
|
event.preventDefault()
|
||||||
this.iambicDit(begin)
|
this.iambicDit(begin)
|
||||||
}
|
}
|
||||||
if ((event.code == "KeyZ") || (event.code == "Slash")) {
|
if ((event.code == "KeyZ") ||
|
||||||
|
(event.code == "Slash") ||
|
||||||
|
(event.code == "ControlRight") ||
|
||||||
|
(event.code == "BracketRight") ||
|
||||||
|
(event.key == "]")) {
|
||||||
event.preventDefault()
|
event.preventDefault()
|
||||||
this.iambicDah(begin)
|
this.iambicDah(begin)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue