You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to bind keys F10 to F20 (with or without a modifier), for example shift-f11, WeeChat displays a warning saying it could be a raw code or invalid key, although it's a perfectly valid key.
=!= | Warning: key "shift-f11" seems either a raw code or invalid, it may not work (see /help key)
But the key is added and works fine.
Expected behavior
Key added with no warning displayed.
Suggested solutions
Fix the order of aliases in list gui_key_alias_list to use first F10 to F20, then F0 to F9, so that longer aliases are found first when looping on this list (in src/gui/gui-key.c).
flashcode
changed the title
Binding key shift-f11 displays a warning about raw code or invalid key
Binding keys F10 to F20 display a warning about raw code or invalid key
Nov 4, 2023
Bug summary
When trying to bind keys F10 to F20 (with or without a modifier), for example
shift-f11
, WeeChat displays a warning saying it could be a raw code or invalid key, although it's a perfectly valid key.Steps to reproduce
1. Issue this command:
/key bind shift-f11 /bar scroll nicklist * -100%
Current behavior
Warning displayed:
But the key is added and works fine.
Expected behavior
Key added with no warning displayed.
Suggested solutions
Fix the order of aliases in list
gui_key_alias_list
to use first F10 to F20, then F0 to F9, so that longer aliases are found first when looping on this list (insrc/gui/gui-key.c
).Additional information
Bug affects all versions >= 4.0.0.
The text was updated successfully, but these errors were encountered: