Ticket #2597 (assigned enhancement)

Opened 13 years ago

Last modified 5 months ago

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

Reported by: zap Owned by:
Priority: major Milestone: Future Releases
Component: mc-tty 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 13 years ago by angel_il

Version 0, edited 13 years ago by angel_il (next)

comment:2 Changed 13 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 13 years ago by angel_il

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

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

comment:4 Changed 13 years ago by gotar

  • Cc gotar@… added

comment:5 Changed 3 years ago by andrew_b

  • Owner angel_il deleted
  • Status changed from accepted to assigned
  • Component changed from mc-core to mc-tty

comment:6 Changed 3 years ago by andrew_b

Ticket #4297 has been marked as a duplicate of this ticket.

comment:7 Changed 5 months ago by andrew_b

Ticket #4554 has been marked as a duplicate of this ticket.

Note: See TracTickets for help on using tickets.