summaryrefslogtreecommitdiff
path: root/plugins/hotkeys
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2012-11-18 22:39:57 +0100
committerGravatar waker <wakeroid@gmail.com>2012-11-18 22:39:57 +0100
commita848c17ed3d206223ad94be9ee0b9ff477d9820c (patch)
tree9564d4803ddecaf03ec955afeb917addf078789d /plugins/hotkeys
parentdaad4ed47ad2a21b46d19829c8627eeaf24fe82a (diff)
gtkui: added toggle menu hotkey
Diffstat (limited to 'plugins/hotkeys')
-rw-r--r--plugins/hotkeys/hotkeys.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/hotkeys/hotkeys.c b/plugins/hotkeys/hotkeys.c
index 6c8ca0d7..4d532b6a 100644
--- a/plugins/hotkeys/hotkeys.c
+++ b/plugins/hotkeys/hotkeys.c
@@ -92,6 +92,7 @@ get_keycode (Display *disp, const char* name, KeySym *syms, int first_kk, int la
{
if ( (keys[ ks ].keysym == sym) && (0 == strcmp (name, keys[ ks ].name)))
{
+ printf ("%x\n", i+first_kk);
return i+first_kk;
}
}
@@ -499,6 +500,11 @@ DB_plugin_action_t*
hotkeys_get_action_for_keycombo (int key, int mods, int isglobal, int *ctx) {
int i;
// find mapped keycode
+
+ if (isupper (key)) {
+ key = tolower (key);
+ }
+
int keycode = 0;
for (i = 0; keys[i].name; i++) {
if (key == keys[i].keysym) {