Dismiss Notice
This Section is READ ONLY - All Posts Are Archived

[Responded] Choose entrance/destination window: add keyboard support

Discussion in 'User Interface (Including Launcher)' started by Elwyn, Sep 23, 2017.

Thread Status:
Not open for further replies.
  1. Elwyn

    Elwyn Avatar

    Messages:
    3,617
    Likes Received:
    4,783
    Trophy Points:
    153
    Gender:
    Male
    Location:
    San Antonio, TX
    I was asked by @Sannio to make a bug post about this.

    Basically, the current "choose destination" window has no keyboard support at all. The UI elements are tiny relative to the size of the screen, so you have to first find the cursor, then aim for small targets with it to do anything. Also, the act of clicking may cause the mouse position to move, one of the less appreciated benefits of the E key.

    I would like to suggest some key bindings:

    ENTER - same as Choose Destination button, go to current selection if an item is selected. There may not be a selection yet if you were using a multi-POT wagon or in-town transport, since a "default" doesn't make sense there.
    up arrow - select previous item in the list
    down arrow - select next item in the list
    E key - go to the destination under the cursor even if another item is selected, because E key is normally equivalent to a double-click. If the cursor is not over an item in the list, ignore the E key. You could also make E key operate the Choose Destination button when the cursor is over it.

    If the event handling somehow still sees the E key that brought up the choose destination window, it should be ignored until after it has been released.

    If there is no selection yet, the arrow keys need to be specified to do something. The least surprising thing to do would probably be to always select the first item if none has been selected yet. Another thing that needs to be considered is whether the arrow key selection should wrap around or not. It's probably a good thing.
     
  2. BurningToad

    BurningToad Dev Emeritus Dev Emeritus

    Messages:
    1,280
    Likes Received:
    3,797
    Trophy Points:
    125
    Gender:
    Male
    Location:
    Austin, TX
    I've added some support for what you ask. The main difference being that the E key will operate like you described the Enter key as doing, and Enter will do nothing. Also, move forward (W) and move back (S) will work in addition to arrow keys. This was the simplest to implement for now to get it in for this release.

    Thanks for the suggestions!
     
Thread Status:
Not open for further replies.