mirror of https://github.com/nealey/vail.git
Final (I hope) Iambic B tweak
This commit is contained in:
parent
8a82a4dc43
commit
af1d5ddbc7
|
@ -333,8 +333,12 @@ class Keyer {
|
||||||
*/
|
*/
|
||||||
Dit(down) {
|
Dit(down) {
|
||||||
this.ditDown = down
|
this.ditDown = down
|
||||||
if (down && this.typeahead || !this.Busy()) {
|
if (down) {
|
||||||
this.Enqueue(DIT, this.typeahead)
|
if (this.typeahead
|
||||||
|
|| !this.Busy()
|
||||||
|
|| (this.iambicModeB && (this.last == DAH))) {
|
||||||
|
this.Enqueue(DIT)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -345,8 +349,12 @@ class Keyer {
|
||||||
*/
|
*/
|
||||||
Dah(down) {
|
Dah(down) {
|
||||||
this.dahDown = down
|
this.dahDown = down
|
||||||
if (down && this.typeahead || !this.Busy()) {
|
if (down) {
|
||||||
this.Enqueue(DAH, this.typeahead)
|
if (this.typeahead
|
||||||
|
|| !this.Busy()
|
||||||
|
|| (this.iambicModeB && (this.last == DIT))) {
|
||||||
|
this.Enqueue(DAH)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue