CleverRaven / Cataclysm-DDA

Cataclysm - Dark Days Ahead. A turn-based survival game set in a post-apocalyptic world.
http://cataclysmdda.org
Other
9.92k stars 4.08k forks source link

Filter hint in keybindings menu shows `f` regardless of the local keybinding. #74637

Open Brambor opened 1 week ago

Brambor commented 1 week ago

Describe the bug

I set it to c locally, but it still shows f: image

However, when I open the keybindings menu for keybindings menu, it correctly shows c: image

Attach save file

N/A

Steps to reproduce

Local keybinding:

  1. Open any keybindings menu (BASIC menu).
  2. Open keybindings menu for keybindings menu ? (NESTED menu).
  3. Set Filter local keybinding to c or something else.
    • image
  4. Observe: filter in NESTED menu shows the correct hint:
    • image
  5. Close NESTED menu, this gets you to BASIC menu.
  6. Observe: filter in BASIC menu still shows f as a hint.
  7. Try using it, it doesn't work. Try using c, it does work.

In step 3, if global keybinding is set (remove all -, then set new global keybinding = to c for example), then it works as expected.

Expected behavior

Show the correct keybinding. If global is overwritten by local, then the local is the correct one.

Screenshots

No response

Versions and configuration

Additional context

These don't change either: image

But they are very special cases and they always do work. The special case is not to allow the player to break controls to change controls.