The "Numlock" behavior is gone.
Perhaps you should add a line to the log that tells us which key combo was received. As I understand it, only the symptom is cured.
Further testing:
The Numpad-Enter key inserts the byte $03 into the text. It usually worked to end editing a headline. No more.
###
The "NumLock" episode made me think "what does the 'NumLock' key produce?
The text "Clear". With the cursor after the 'C'.
###
This made me go systematically through all keys:
'äöüß' throw an exception:
Traceback (most recent call last):
File "/Volumes/Luna/python/github/Leo/leo-editor-clone-git/leo/plugins/qt_events.py", line 100, in eventFilter
k.masterKeyHandler(key_event)
File "/Volumes/Luna/python/github/Leo/leo-editor-clone-git/leo/core/leoKeys.py", line 3166, in masterKeyHandler
k.checkKeyEvent(event)
File "/Volumes/Luna/python/github/Leo/leo-editor-clone-git/leo/core/leoKeys.py", line 3226, in checkKeyEvent
c.check_event(event)
File "/Volumes/Luna/python/github/Leo/leo-editor-clone-git/leo/core/leoCommands.py", line 1939, in check_event
elif trace or k.isPlainKey(stroke):
File "/Volumes/Luna/python/github/Leo/leo-editor-clone-git/leo/core/leoKeys.py", line 4385, in isPlainKey
return stroke.isPlainKey()
File "/Volumes/Luna/python/github/Leo/leo-editor-clone-git/leo/core/leoGlobals.py", line 563, in isPlainKey
return unicodedata.category(s).startswith('C')
TypeError: category() argument 1 must be unicode, not str
The rest of the keys can be used normally and shifted.
###
The keys with ALT.
Oh. This is a complete new can of worms.
It took me a while to understand that many of alt-anychar are now commands.
On OSX the ALT key can be used for commands only with F1-F18, INS,DEL, CURSORS, page up/down, pos1, End,
Or in combination with Command (CTRL in Leo) or CRTL (Meta).
The standard key assignments for OSX must not have any of:
ALT-[1-9a-z-+.,<>^äöüß´]
For better understanding I attached the normal, ALTED and SHIFT-ALT german keyboard layouts.