I have a QAction with a shortcut set to letter "x", and the shortcut context Qt::ApplicationShortcut (at any point in the application the shortcut is available).
When I click on a QLineEdit to start writing some text, all letters except "x" are read by this widget. The "x" will just activate the QAction.
How can I use an application-wide shortcut like that in a way that makes it only available when the user isn't writing on a QLineEdit or other widget that receives text?
Bookmarks