Ticket #2597 (accepted enhancement)

Opened 8 years ago

Last modified 8 years ago

Add support for shift-f#, alt-f#, ctrl-f# hotkeys

Reported by: zap Owned by: angel_il
Priority: major Milestone: Future Releases
Component: mc-core Version: 4.8.0-pre1
Keywords: Cc: gotar@…
Blocked By: Blocking:
Branch state: no branch Votes for changeset:

Description

Some terminal descriptors (e.g. TERM=gnome for gnome-terminal, etc) contain many extra descriptors for modificator+f# hotkeys, compared to 'simple' terminal descriptions like xterm: F1..F12 (kf1-kf12), Shift+F1..Shift+F12 (kf13-kf24), Ctrl+F1..Ctrl+F12 (kf25-kf36), Shift+Ctrl+F1..Shift+Ctrl+F12 (kf37..kf48), Alt+F1..Alt+F12 (kf49..kf60), Alt+Shift+F1..Alt+Shift+F3 (kf61..kf63) (see also infocmp -1 -I gnome).

However, I cannot use these hotkeys in /etc/mc/mc.keymap neither as 'alt-f7' or as f55, for example.

It would be nice to support somehow these extra hotkeys, at least as 'f##' if not as modifier-f#.

This would allow to set up Alt+F7 as an alternative key for file searching, which will ease the life of those who migrates from Windows/FAR, for example.

Change History

comment:1 Changed 8 years ago by angel_il

Last edited 8 years ago by andrew_b (previous) (diff)

comment:2 Changed 8 years ago by zap

Thanks, this works as a temporary workaround, but it would be good to have support for f1-f63 anyway, since terminfo supports all of them, and mc only supports f1-f20.

comment:3 Changed 8 years ago by angel_il

  • Owner set to angel_il
  • Status changed from new to accepted

ok, i'll try to work on this point...

comment:4 Changed 8 years ago by gotar

  • Cc gotar@… added
Note: See TracTickets for help on using tickets.