[Libreoffice-commits] core.git: Branch 'feature/qt5+kde5' - vcl/qt5
Katarina Behrens
Katarina.Behrens at cib.de
Tue Jun 26 09:51:19 UTC 2018
vcl/qt5/Qt5Widget.cxx | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 868909ea7f18fd8da3e36e2452f9572e38a42457
Author: Katarina Behrens <Katarina.Behrens at cib.de>
Date: Tue Jun 26 11:48:52 2018 +0200
Traversing dialog controls backwards (Shift-Tab) works now
Change-Id: If0e8d7307dd37436751e524d7ed24e89d5b72db3
diff --git a/vcl/qt5/Qt5Widget.cxx b/vcl/qt5/Qt5Widget.cxx
index 3e3448381946..c4d38264782c 100644
--- a/vcl/qt5/Qt5Widget.cxx
+++ b/vcl/qt5/Qt5Widget.cxx
@@ -257,6 +257,10 @@ static sal_uInt16 GetKeyCode(int keyval)
nCode = KEY_ESCAPE;
break;
case Qt::Key_Tab:
+ // oddly enough, Qt doesn't send Shift-Tab event as 'Tab key pressed with Shift
+ // modifier' but as 'Backtab key pressed' (while its modifier bits are still
+ // set to Shift) -- so let's map both Key_Tab and Key_Backtab to VCL's KEY_TAB
+ case Qt::Key_Backtab:
nCode = KEY_TAB;
break;
case Qt::Key_Backspace:
More information about the Libreoffice-commits
mailing list