QEvent::ShortcutOverride problem
Unsolved
General and Desktop
-
I am using QEvent::ShortcutOverride to handle two shortcuts, F and Ctrl+F. Each time, I press Ctrl first, followed by F. However, the order in which the keys enter QEvent::ShortcutOverride is always F first, then Ctrl+F (determined by whether Ctrl is pressed through modifiers()). This makes it impossible for me to accurately distinguish between the two shortcuts F and Ctrl+F. Could it be that I am doing something wrong? If so, how can I correctly distinguish and handle the two shortcuts F and Ctrl+F?
-
@Ben-ny
Please create a minimal, compilable reproducer.