Fix for control keys in Cocoa UI backend

release
slava 2006-03-18 23:27:04 +00:00
parent 4d55a13461
commit 59531bc2ae
2 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -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 -- )