Changes between Version 1 and Version 2 of Ticket #4632, comment 5


Ignore:
Timestamp:
01/18/25 19:58:49 (5 weeks ago)
Author:
zaytsev
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #4632, comment 5

    v1 v2  
    3131* FreeBSD and Solaris consoles are already doing the right thing (magically?) 
    3232 
     33{{{ 
     34keycode  59 = F1               F11              Console_13 
     35keycode  60 = F2               F12              Console_14 
     36keycode  61 = F3               F13              Console_15 
     37... 
     38}}} 
     39 
    3340Source: https://github.com/torvalds/linux/blob/master/drivers/tty/vt/defkeymap.map 
    3441 
     42{{{ 
     43# Old keyboards have 10 function keys, and keymaps have 
     44# sometimes used shift+F1 = F11, and sometimes shift+F1 = F13. 
     45# Here we assume an enhanced keyboard (with 12 function keys). 
     46# 
     47plain keycode  59 = F1 
     48plain keycode  60 = F2 
     49plain keycode  61 = F3 
     50... 
     51shift keycode  59 = F13 
     52shift keycode  60 = F14 
     53shift keycode  61 = F15 
     54}}} 
     55 
     56Source: https://github.com/legionus/kbd/blob/master/data/keymaps/i386/include/linux-keys-bare.inc#L17 
     57 
    3558So maybe we can just fix it, at least for physical consoles, or am I being naive? We won't get around physical F11/F12 producing different sequences from Shift-F1 and Shift-F2. There will still confusion remaining as to how key bindings are working and people will wonder why no action can be bound to physcial F11/F12 (unless we implement them under a different name like `pf11, pf12, pf21, pf22`). But overall, a very long-standing problem will be solved for a lot of users.