On Tue, Mar 15, 2011 at 12:42:18PM -0700, Ping Cheng wrote:
> I am lost in my own backyard ;(.
>
> Can we still set a keystroke which has one of these keys: "NumLock", "PgUp",
> "PgDn", "End"?
Any key that's a valid X keysym should be parsed provided it can be found in
the current keymap. But the spelling is important: Num_Lock
"End" should just work since it's a valid keysym.
For PgDn/PgUp ("Prior" and "Next") it's not as obivous so that warrants
specialcasing. See attached patch.
> Also, do we plan to display the keys when user issues "xsetwacom get" when a
> keystroke is defined? If we want desktop UI to convert the keycodes to its
> localized language, how do they get the keycodes?
two separate issues here:
xsetwacom has a bug and doesn't set keys atm. see
http://sourceforge.net/mailarchive/message.php?msg_id=27184850
I'm about to push the fix for this though.
With the fix in it works
$> xsetwacom get "Wacom Intuos4 6x9 pad" Button 2
key +Prior -Prior
the other issue:
any desktop UI that relies on xsetwacom output is broken by
design. a UI should do what xsetwacom does in the background (read the
property, extract keycodes, convert to keysyms etc.) but not rely on
xsetwacom directly.
Cheers,
Peter
>From 328af36bc2ff728e62bac2f8ff67565758b5efef Mon Sep 17 00:00:00 2001
From: Peter Hutterer <peter.hutte...@who-t.net>
Date: Wed, 16 Mar 2011 10:06:01 +1000
Subject: [PATCH] xsetwacom: add pgup and pgdwn as special keys.
"Prior" and "Next" aren't quite that obvious so specialcasing seems
warranted here.
Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net>
---
tools/xsetwacom.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/tools/xsetwacom.c b/tools/xsetwacom.c
index 7c0afbd..5388f6c 100644
--- a/tools/xsetwacom.c
+++ b/tools/xsetwacom.c
@@ -491,6 +491,8 @@ static struct modifier specialkeys[] = {
{"tab", "Tab"},
+ {"PgUp", "Prior"}, {"PgDn", "Next"},
+
{ NULL, NULL }
};
--
1.7.4
------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Linuxwacom-devel mailing list
Linuxwacom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel