Don't crash when seven keys are pressed.
This commit is contained in:
parent
a059395642
commit
5cfcb4324b
2 changed files with 4 additions and 2 deletions
|
@ -154,8 +154,8 @@
|
|||
|
||||
(define (press-normal-key keycode key)
|
||||
(let ((slot (find keycodes-down 0)))
|
||||
(vector-set! keycodes-down slot keycode)
|
||||
(vector-set! keys-for-frame slot key)))
|
||||
(and slot (vector-set! keycodes-down slot keycode))
|
||||
(and slot (vector-set! keys-for-frame slot key))))
|
||||
|
||||
(define (press-key key)
|
||||
(let ((keycode (lookup key)))
|
||||
|
|
2
test.rkt
2
test.rkt
|
@ -92,6 +92,8 @@
|
|||
((40) . (()))
|
||||
;; base layer key
|
||||
((2) . (() ,key-e))
|
||||
;; seven keys down
|
||||
((1 2 3 4 7 8 9) . (() ,key-e ,key-w ,key-r ,key-t ,key-u ,key-i))
|
||||
;; shift combo and shift key simultaneously
|
||||
((40) . (()))
|
||||
((40 1 36) . ((shift) ,key-2))
|
||||
|
|
Loading…
Reference in a new issue