Alan Schmitt wrote:
I would like to use other keys to navigate the menus than the arrow keys. I have found were the behaviour is defined in menus.c, and I am
thinking of making it a keybinding.


Looking at the way keybindings are implemented, it seems a little too
complex (I'm not sure I want to add actions in actions.c/ActionFunction and in E.h, it seems too generic). What I would rather do is have a way to store somewhere what keys are used to navigate menus, and use that in menus.c/MenuEventKeyPress. Is there already a place to store such things?


This isn't a keybinding thing, it's a question of somehow defining which
key does what in the menu navigation.

One fairly easy way to do this would be to add a struct, let's say

struct {
   KeySym left, right, up, down;
} menukeys;

to the Conf struct, add the associated load and save statements (one
config line?) in config.c, and add a function call in menus.c after
XLookupKeysym() mapping the received key into the desired "function".
There would have to be configured some defaults (setup.c). Finally, a
way to actually set the values would be nice. vi
~/.enlightenment/...e_session-XXXXXX could of course be considered "a
way" :)

I think this configuration thing is somewhat complicated and I'm
currently playing around a bit with a new configuration handler (using
edb), which would significantly simplify adding configuration items like
this.

/Kim


------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click _______________________________________________ enlightenment-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to