Fix for control keys in Cocoa UI backend
parent
4d55a13461
commit
59531bc2ae
|
@ -32,7 +32,6 @@
|
|||
- menu drag retarget broken
|
||||
- hang when scrolling
|
||||
- hang with multiple windows
|
||||
- C+k binding does not work
|
||||
- incremental layout flicker
|
||||
- expired aliens in view hash
|
||||
- unregister notifications and the view in dealloc
|
||||
|
|
|
@ -66,8 +66,12 @@ H{ } clone views set-global
|
|||
[ second swap bitand 0 > ] subset-with
|
||||
[ first ] map ;
|
||||
|
||||
: key-code ( event -- string )
|
||||
dup [keyCode] key-codes
|
||||
[ ] [ [charactersIgnoringModifiers] CF>string ] ?if ;
|
||||
|
||||
: event>binding ( event -- binding )
|
||||
dup [modifierFlags] modifier swap [keyCode] key-codes
|
||||
dup [modifierFlags] modifier swap key-code
|
||||
[ add >list ] [ drop f ] if* ;
|
||||
|
||||
: send-key-event ( event -- )
|
||||
|
|
Loading…
Reference in New Issue