From a4a165df79514f34736282e699180cb8ae81c949 Mon Sep 17 00:00:00 2001 From: Andrey Mozzhuhin Date: Sun, 1 Oct 2017 18:13:05 +0300 Subject: Fix bug #1226962 - Keyboard shortcuts (hotkeys) not functional in some cases in non-latin keyboard layouts The key group with zero index can be a non-Latin layout. Try to determine Latin layout group index at runtime by checking available keymap entries for Latin 'a' keyval. --- src/inkscape.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/inkscape.cpp') diff --git a/src/inkscape.cpp b/src/inkscape.cpp index c56002753..c6c43272c 100644 --- a/src/inkscape.cpp +++ b/src/inkscape.cpp @@ -487,9 +487,10 @@ Application::Application(const char* argv, bool use_gui) : Inkscape::UI::Dialog::DebugDialog::getInstance()->captureLogMessages(); } - /* Check for global remapping of Alt key */ if (use_gui) { + Inkscape::UI::Tools::init_latin_keys_group(); + /* Check for global remapping of Alt key */ mapalt(guint(prefs->getInt("/options/mapalt/value", 0))); trackalt(guint(prefs->getInt("/options/trackalt/value", 0))); } -- cgit v1.2.3