Re: r2611 - keys ctrl+M
Reply #6 –
This has two reasons: (1) in textinput Ctrl+M and Enter are treated as the same keys, (2) if keyboard event releases focus, this event is p****ed to the main event handler.
That means, Ctrl+M releases focus in textinput, but will be p****ed to the main event handler, which calles the tool that is mapped to Ctrl+M. The same happens for Enter, but tools cannot be mapped to this key.
Here is a patch. It fixes this bug, but introduces another one: pressing Esc in text-input will now only release focus but does not close the window immediately.
Another way would be to directly patch textinput. But then Ctrl+Enter won't work like Enter.
The main difficulty is to distinguish Enter, Ctrl+M, and Ctrl+Enter.