diff options
author | Yuhang Zhao <2546789017@qq.com> | 2022-03-01 13:14:11 +0800 |
---|---|---|
committer | Yuhang Zhao <2546789017@qq.com> | 2022-04-23 19:02:02 +0800 |
commit | 4ec9b0cd19267d8df6cc6a0926de7a35d01a77ba (patch) | |
tree | 5c5f62cef22baf48556356eef3fc5f0a33233865 /src/plugins/platforms/windows/qwindowskeymapper.cpp | |
parent | fa1f3ad73a8e51a6eba1793df615d68ab55f6d5f (diff) |
Windows QPA: fix the FullScreen standard key
If you try to use the QKeySequence::FullScreen
as a shortcut for your Qt applications, you'll find
it's not working. This is due to this key combination
is being skipped by Qt and it's being passed to Windows's
default handling procedure. This is wrong because
Windows doesn't provide any default action for this
shortcut so nothing will happen.
Change-Id: Id73b7275764fe63c119a6d673a665b0090944fef
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Diffstat (limited to 'src/plugins/platforms/windows/qwindowskeymapper.cpp')
-rw-r--r-- | src/plugins/platforms/windows/qwindowskeymapper.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/plugins/platforms/windows/qwindowskeymapper.cpp b/src/plugins/platforms/windows/qwindowskeymapper.cpp index 7ee1d1e7d8..f0cab379d8 100644 --- a/src/plugins/platforms/windows/qwindowskeymapper.cpp +++ b/src/plugins/platforms/windows/qwindowskeymapper.cpp @@ -1250,7 +1250,6 @@ bool QWindowsKeyMapper::translateKeyEventInternal(QWindow *window, MSG msg, switch (code) { case Qt::Key_Escape: case Qt::Key_Tab: - case Qt::Key_Enter: case Qt::Key_F4: return false; // Send the event on to Windows case Qt::Key_Space: |