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) {
|
||||
this.ditDown = down
|
||||
if (down && this.typeahead || !this.Busy()) {
|
||||
this.Enqueue(DIT, this.typeahead)
|
||||
if (down) {
|
||||
if (this.typeahead
|
||||
|| !this.Busy()
|
||||
|| (this.iambicModeB && (this.last == DAH))) {
|
||||
this.Enqueue(DIT)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -345,8 +349,12 @@ class Keyer {
|
|||
*/
|
||||
Dah(down) {
|
||||
this.dahDown = down
|
||||
if (down && this.typeahead || !this.Busy()) {
|
||||
this.Enqueue(DAH, this.typeahead)
|
||||
if (down) {
|
||||
if (this.typeahead
|
||||
|| !this.Busy()
|
||||
|| (this.iambicModeB && (this.last == DIT))) {
|
||||
this.Enqueue(DAH)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue