[Twinsen] [2.0.10] Remapping hotkey for Select next/previous surface does not always prevent arrow keys from working

Eluvatar
Burner Inserter
Burner Inserter
Posts: 6
Joined: Fri Aug 18, 2017 8:12 pm
Contact:

[Twinsen] [2.0.10] Remapping hotkey for Select next/previous surface does not always prevent arrow keys from working

Post by Eluvatar »

I use the arrow keys for walking around, as such the default hotkey for "Select next surface" and "Select previous surface" being up and down arrow keys conflicted with moving around in map view. So I found the hotkey and rebound them to Page up and Page down. However sometimes the arrow keys still switch the surface that I'm viewing.

I would expect that unbinding the hotkeys would make those buttons not trigger those actions. I would like the arrow keys to move around the camera instead of changing surfaces.

OS: Windows

Steps to reproduce:
  • change keybind for "Select next surface" and "Select previous surface" to page up & page down (the keys you bind to probably don't matter)
  • click the map with the mouse
  • press up and down arrow, notice they don't change the surface, as expected
  • use click on a different surface in the "Surfaces" window in the top right (required), do not click anywhere else after the fact, it seems that this window stays "focused"
  • now up and down arrow keys will switch surfaces as they did before unbinding the keys, this is the bug and unexpected!
the only workaround is to close the map and open it again, then it's back to working as expected, then just don't use the "Surfaces" view. In testing this I noticed that the issue is likely that the window is focused and the arrow keys are changing that focus which just happens to be the previous behavior.
Attachments
factorio-current.log
(14.66 KiB) Downloaded 4 times
Rseding91
Factorio Staff
Factorio Staff
Posts: 14280
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.0.10] Remapping hotkey for Select next/previous surface does not always prevent arrow keys from working

Post by Rseding91 »

Thanks for the report. This looks like the generic logic of the list-view widget reacting to the arrow keys to select previous/next.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Assigned”