In a key down event of Mac, input character with modifier may be converted to a new character, and it may not match what we defined in the key map.
e.g.
Control + k => char with Ascii code 11
As a result, this input combination will not match {'k', SCI_META, SCI_DELLINERIGHT}, but {11, SCI_META, SCI_DELLINERIGHT}
I suggested that we should use -[NSEvent charactersIgnoringModifiers] to get the input, instead of -[NSEvent characters] to avoid this unintended conversion
Here is my proposed changes
Seems OK in limited testing. I'll wait to see if others have opinions.
Committed as [1fae8a].
Related
Commit: [1fae8a]