Export to GitHub

qdevelop - issue #327

Shortcut keys become scrambled when switching languages


Posted on Dec 4, 2008 by Happy Bird

What steps will reproduce the problem? 1. Set your environment to any supported non-English language, e.g. "export LANG=de" 2. Run qdevelop 3. Open any menu that shows some actions having shortcuts or open Tools->Configure Shortcuts 4. Close the program 5. Set your environment to any supported language, e.g. "export LANG=C" 6. Run qdevelop 7. Open any menu that shows some actions having shortcuts or open Tools->Configure Shortcuts

What is the expected output? What do you see instead? If the shortcuts in step 3 were correct, they should also be correct (containing Ctrl, Shift, Alt) in step 7. But the Ctrl and Shift are gone, only the letter itself remains as the shortcut.

What version of the product are you using? On what operating system? Version 0.26 on WinXP and on Debian etch+lenny

Please provide any additional information below. The problem is that the native version of the shortcut is stored in the . QSettings object in MainImpl::saveINI(). The native names of the Shift and Ctrl key can not be read back in when another language is used. Attached a patch against SVN r345 that fixes this. Note that this will only prevent bad shortcuts wrom being saved, but you still need to restore the shortcut defaults manually once.

Attachments

Status: New

Labels:
Type-Defect Priority-Medium