diff options
author | Vlad Zahorodnii <[email protected]> | 2025-01-29 22:49:15 +0200 |
---|---|---|
committer | Vlad Zahorodnii <[email protected]> | 2025-06-18 22:26:23 +0200 |
commit | c6779c7252bf5690305eba9646b9259f24f5b5fb (patch) | |
tree | d9dd8cb33e18eb74819fd4bfe23f8ed791ba0361 /examples/widgets/animation/easing/window.cpp | |
parent | 68210484d95b0f944092c1380aafa7325c9ca891 (diff) |
The QShortcutMap triggers shortcuts on key press. It's okay with normal
shortcuts but modifier only shortcuts require extra care. Depending on
the context, they can be triggered either on key press or key release.
For example, for push to talk, they should be triggered on key press,
but if a modifier only shortcut is assigned to a dashboard or something,
then it should be triggered on key release so the dashboard is not
accidentally opened when pressing another shortcut that starts with the
same modifier. The QShortcutMap currently doesn't provide support for
modifier only shortcuts.
The proposed new test case verifies that a modifier only shortcut will
not be accidentally triggered if there is a normal shortcut with the
same modifier keys.
Task-number: QTBUG-132435
Change-Id: I612d0239b29f8c1730016d10257def039b5e6cf1
Reviewed-by: Tor Arne Vestbø <[email protected]>
Diffstat (limited to 'examples/widgets/animation/easing/window.cpp')
0 files changed, 0 insertions, 0 deletions