vcl/qt5/QtWidget.cxx | 10 ----------
1 file changed, 10 deletions(-)
New commits:
commit f7fc90d85062214d45faebbf0b65a65384643318
Author: Thorsten Behrens <[email protected]>
AuthorDate: Mon Mar 27 14:17:02 2023 +0200
Commit: Thorsten Behrens <[email protected]>
CommitDate: Mon Mar 27 14:20:29 2023 +0200
Revert "tdf#126785 qt5: Ignore external QEvent::ShortcutOverride"
This reverts commit 034f56015c1c7a61faede33fb5306f63b5585632.
This reverts commit 69e708868f6046cada955a16bca966370ce3218a.
Reason: code in Qt5 actually triggering this issue only landed via
https://codereview.qt-project.org/c/qt/qtbase/+/226592 and Qt5.10 and
older end up not receiving _any_ key presses otherwise.
Change-Id: I8826ed0773f18b6dc0fe3b888476ae43eae3180e
diff --git a/vcl/qt5/QtWidget.cxx b/vcl/qt5/QtWidget.cxx
index 8c545fd13377..0573acae738a 100644
--- a/vcl/qt5/QtWidget.cxx
+++ b/vcl/qt5/QtWidget.cxx
@@ -614,16 +614,6 @@ bool QtWidget::handleEvent(QtFrame& rFrame, QWidget&
rWidget, QEvent* pEvent)
{
if (pEvent->type() == QEvent::ShortcutOverride)
{
- // ignore non-spontaneous QEvent::ShortcutOverride events,
- // since such an extra event is sent e.g. with Orca screen reader
enabled,
- // so that two events of that kind (the "real one" and a
non-spontaneous one)
- // would otherwise be processed, resulting in duplicate input as
'handleKeyEvent'
- // is called below (s. tdf#122053)
- if (!pEvent->spontaneous())
- {
- return false;
- }
-
// Accepted event disables shortcut activation,
// but enables keypress event.
// If event is not accepted and shortcut is successfully activated,