Re: proposed patch: hotkeys in hotlist

bulia byak wrote:
I have patched hotlist.c so that the hotlist window now displays and reacts to hotkeys for entries, similarly to the 
"f2" user menu. The hotkeys are read and stored as an optional field in the hotlist file, e.g.:

ENTRY "home" URL "/home/me" HOTKEY "h"

It will be more consistent and usable to use some special key to highlight hotkey like '&' in the menus:

ENTRY "&home" URL "/home/me"

It's backwards compatible in that the users with no HOTKEY fields in this file will not notice any difference, the hotlist will work as usual for them.
The only problem is that the user must select hotkeys so that they do not clash with the keys that activate the buttons at the bottom of 
the window. However, if this happens, the list hotkeys just get the priority and nothing bad happens. For example, I have used 
"c" as a hotkey in the list, so now I cannot press "c" to activate the "Cancel" button - but I don't need it 
anyway, so it's not a problem (and when I need it, I can go to it using Tab).

I use the hotlist a lot, and with hotkeys it became much "hotter" and easier to use. So please discuss this, 
and if interested, I will post the patch for inclusion into mc.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]