* Carsten Haitzler <[email protected]> [140322 20:16]:
> key map is compiled into ecore_fb. ecore_fb_keytable.h to be exact. for
> whatever reason your escape key isn't producing the keycode that seems to
> appear elsewhere - at least when last tested. no - there is no way to modify
> the keymap without modifying the code.
Thanks for pointing out this file.
/* this table was taken from ecore_fb, is the default en layout */
"0x00", "0x00", "0x00", /**/"", "", "", NULL,/***/
"Escape", "Escape", "Escape", /**/"", "", "", "\x1b",/***/
"1", "exclam", "1", /**/"1", "!", "1", NULL,/***/
[...]
I changed the "Escape" line, adding the octal encoding for ESC:
"Escape", "Escape", "Escape", /**/"\033","\033","\033", "\x1b",/***/
recompiled, and now the escape key works fine in my fbcon.
Then re-mapped the CapsLk key to Control:
"Control_L", "Caps_Lock", "Caps_Lock", /**/"", "", "", NULL,/***/
which made CapsLk behave as a Control key. I'd like to make this key
also function as CapsLk when modified by Shift or Ctrl, but am not
finding a way to do this.
Also noticed Alt+Home wasn't bringing up command mode. Seems the
Alt key was behaving as a shift-modifier key...using `kbd-test` the
Alt-{Up,Down,Left,Right} keys reported: KEY_SR KEY_SF KEY_SLEFT
KEY_SRIGHT -- same as for Shift-{Up,Down,Left,Right}.
Took a look at ecore_fb_li.c and made changes like so:
% diff -U0 ecore_fb_li.c.original ecore_fb_li.c
--- ecore_fb_li.c.original 2014-03-27 18:27:42.171966071 -0700
+++ ecore_fb_li.c 2014-03-27 18:28:41.123800575 -0700
@@ -129 +129 @@
- if (dev->keyboard.alt) e->modifiers |= ECORE_EVENT_MODIFIER_SHIFT;
+ if (dev->keyboard.alt) e->modifiers |= ECORE_EVENT_MODIFIER_ALT;
@@ -193 +193 @@
- if (dev->keyboard.alt) e->modifiers |= ECORE_EVENT_MODIFIER_SHIFT;
+ if (dev->keyboard.alt) e->modifiers |= ECORE_EVENT_MODIFIER_ALT;
@@ -254 +254 @@
- if (dev->keyboard.alt) e->modifiers |=
ECORE_EVENT_MODIFIER_SHIFT;
+ if (dev->keyboard.alt) e->modifiers |= ECORE_EVENT_MODIFIER_ALT;
@@ -292 +292 @@
- if (dev->keyboard.alt) e->modifiers |=
ECORE_EVENT_MODIFIER_SHIFT;
+ if (dev->keyboard.alt) e->modifiers |= ECORE_EVENT_MODIFIER_ALT;
Now Alt-Home brings up the command mode window, and `kbd-test` reports
kUP3 kDN3 kLFT3 kRIT3 for Alt-{Up,Down,Left,Right}.
Regards,
John
--
John Magolske
http://B79.net/contact
------------------------------------------------------------------------------
_______________________________________________
enlightenment-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-users