Hi Armin,
Using event filter could be a solution.
So far, the event filter does give focus to command line.
Enter/Return can be sent to command line and drawing actions. The current code doesn't handle Enter events well.
Ideally, Enter in drawing area should only be sent to drawing actions.
I'm not clear how to preserve applicatoin wide shortcuts, but this part must be done.
LordOfBikes wrote
Dongxu,
I've build your repo and did some testing. It behaves different, but still not well.
But I'm not sure, if it's my machine causing the issues. I'll continue tests tomorrow on another PC.
Armin