Skip to content

Instantly share code, notes, and snippets.

@ckorn
Last active August 29, 2015 14:04
Show Gist options
  • Save ckorn/ae8a603a2ee6587b24e1 to your computer and use it in GitHub Desktop.
Save ckorn/ae8a603a2ee6587b24e1 to your computer and use it in GitHub Desktop.
# when changing to Japanese input with ibus-mozc and changing
# back to German KeePassX does not type correctly any longer
# has to be a problem in ibus-mozc. For now run "setxkbmap de"
# before autotyping.
Index: keepassx-0.4.3+dfsg/src/lib/AutoTypeGlobalX11.cpp
===================================================================
--- keepassx-0.4.3+dfsg.orig/src/lib/AutoTypeGlobalX11.cpp
+++ keepassx-0.4.3+dfsg/src/lib/AutoTypeGlobalX11.cpp
@@ -130,6 +130,8 @@ void AutoTypeGlobalX11::performGlobal(){
}
focusWindow = getFocusWindow();
+
+ system("setxkbmap de");
bool wasLocked = mainWin->isLocked();
if (wasLocked)
Index: keepassx-0.4.3+dfsg/src/lib/AutoTypeX11.cpp
===================================================================
--- keepassx-0.4.3+dfsg.orig/src/lib/AutoTypeX11.cpp
+++ keepassx-0.4.3+dfsg/src/lib/AutoTypeX11.cpp
@@ -84,6 +84,8 @@ void AutoTypeX11::perform(IEntryHandle*
if (inAutoType)
return;
inAutoType = true;
+
+ system("setxkbmap de");
QString indexStr;
if (nr==0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment