[Pkg-cli-apps-commits] [SCM] keepass2 branch, master, updated. debian/2.16+dfsg-2-6-gab4adab
Julian Taylor
jtaylor.debian at googlemail.com
Fri Dec 30 14:54:03 UTC 2011
The following commit has been merged in the master branch:
commit ab4adaba5426cb8e9f6107455443d4d337e5870b
Author: Julian Taylor <jtaylor.debian at googlemail.com>
Date: Fri Dec 30 15:48:08 2011 +0100
add patch to improve autotype when dealing with multiple keyboard layouts
Thanks to amiryal
diff --git a/debian/changelog b/debian/changelog
index b053c77..3e3ab49 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,8 +2,10 @@ keepass2 (2.17+dfsg-1) UNRELEASED; urgency=low
* New upstream release
- refresh patches, drop applied explicitly-PUT-for-webdav-writes.patch
+ * add patch to improve autotype when dealing with multiple keyboard layouts
+ - Thanks to amiryal
- -- Julian Taylor <jtaylor.debian at googlemail.com> Wed, 19 Oct 2011 22:02:14 +0200
+ -- Julian Taylor <jtaylor.debian at googlemail.com> Fri, 30 Dec 2011 15:45:59 +0100
keepass2 (2.16+dfsg-2) unstable; urgency=medium
diff --git a/debian/patches/series b/debian/patches/series
index d0c70b5..715440b 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -6,3 +6,4 @@ fix-XSL-search-path.patch
remove-ToolsVersion-3.5.patch
prefer-4.0-framework-if-available.patch
enable-local-help.patch
+work-around-issues-with-autotype-and-keyboard-layout.patch
diff --git a/debian/patches/work-around-issues-with-autotype-and-keyboard-layout.patch b/debian/patches/work-around-issues-with-autotype-and-keyboard-layout.patch
new file mode 100644
index 0000000..77c9d82
--- /dev/null
+++ b/debian/patches/work-around-issues-with-autotype-and-keyboard-layout.patch
@@ -0,0 +1,28 @@
+From: Julian Taylor <jtaylor.debian at googlemail.com>
+Date: Tue, 25 Oct 2011 21:08:14 +0200
+Subject: work around issues with autotype and keyboard layouts
+
+for some reason unicode codes works better
+---
+ KeePass/Util/SendInputEx.Unix.cs | 6 ++++--
+ 1 files changed, 4 insertions(+), 2 deletions(-)
+
+diff --git a/KeePass/Util/SendInputEx.Unix.cs b/KeePass/Util/SendInputEx.Unix.cs
+index e30599f..c9ee4a3 100644
+--- a/KeePass/Util/SendInputEx.Unix.cs
++++ b/KeePass/Util/SendInputEx.Unix.cs
+@@ -181,9 +181,11 @@ namespace KeePass.Util
+ if(strString.Length == 0) return;
+
+ if(kMod != Keys.None)
+- NativeMethods.RunXDoTool(@"type '" + strString + @"'");
++ foreach(char c in strString)
++ NativeMethods.RunXDoTool(@"key U" + ((int)c).ToString("x4"));
+ else
+- NativeMethods.RunXDoTool(@"type --clearmodifiers '" + strString + @"'");
++ foreach(char c in strString)
++ NativeMethods.RunXDoTool(@"key --clearmodifiers U" + ((int)c).ToString("x4"));
+
+ ClearModifiers(ref kMod);
+ }
+--
--
keepass2
More information about the Pkg-cli-apps-commits
mailing list