Thread: Possible bug?
View Single Post
Old 09-10-2021, 10:27 AM   #61
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 5,767
Karma: 3571822
Join Date: Nov 2009
Device: many
@BeckyEbook,
When you get a free moment, please try with altgr in the command line with what I just pushed to master ...

Hopefully this change will make it somewhat more like Sigil-1.7 handling when altgr worked.

For those interested n what I added, here is the change just pushed to master to try to handle this case.

Code:
diff --git a/src/Dialogs/PreferenceWidgets/KeyboardShortcutsWidget.cpp b/src/Dialogs/PreferenceWidgets/KeyboardShortcutsWidget.cpp
index b7f77042..688189f6 100644
--- a/src/Dialogs/PreferenceWidgets/KeyboardShortcutsWidget.cpp
+++ b/src/Dialogs/PreferenceWidgets/KeyboardShortcutsWidget.cpp
@@ -276,6 +276,10 @@ void KeyboardShortcutsWidget::handleKeyEvent(QKeyEvent *event)
 
 
 #ifdef Q_OS_WIN32
+    if ((state & Qt::GroupSwitchModifier)) {
+        letter = "" + QChar(nextKey);
+        state = state & ~((int)Qt::GroupSwitchModifier);
+    }
     if ((state & Qt::ShiftModifier) && letter.toUpper() == letter.toLower()) {
         // remove the shift since it is included in the keycode
         state = state & ~Qt::SHIFT;
KevinH is offline   Reply With Quote