vcl/qt5/QtFrame.cxx | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 00bd8b66367ede7ef4d60e6f62ed84db3f8abfa3
Author: Michael Weghorn <[email protected]>
AuthorDate: Wed Jan 21 22:59:26 2026 +0100
Commit: Michael Weghorn <[email protected]>
CommitDate: Thu Jan 22 08:47:02 2026 +0100
tdf#168640 qt: Map right quote and right brace keys to Qt equivalents
This makes the key combinations using them show up
as expected (e.g. "Ctrl+'") in the "Tools" -> "Customize"
dialog, tab "Keyboard", instead of showing incomplete
keyboard shortcuts like "Ctrl+".
Change-Id: I5de599a541610c3c24e0282369a7b0f959eaeca0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197777
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <[email protected]>
diff --git a/vcl/qt5/QtFrame.cxx b/vcl/qt5/QtFrame.cxx
index 6ca1b0aa390f..8a2b6b65016c 100644
--- a/vcl/qt5/QtFrame.cxx
+++ b/vcl/qt5/QtFrame.cxx
@@ -924,6 +924,10 @@ int QtFrame::toQtKeyCode(sal_uInt16 nVclCode)
return Qt::Key_AsciiTilde;
case KEY_QUOTELEFT:
return Qt::Key_QuoteLeft;
+ case KEY_QUOTERIGHT:
+ return Qt::Key_Apostrophe;
+ case KEY_RIGHTCURLYBRACKET:
+ return Qt::Key_BraceRight;
case KEY_BRACKETLEFT:
return Qt::Key_BracketLeft;
case KEY_BRACKETRIGHT: