Skip to content

Can't scroll lists with keyboard initially, without clicking them #211

@danuker

Description

@danuker

Describe the bug
Can not move up or down any list after starting the game, without having clicked it before

To Reproduce
Steps to reproduce the behavior:

  1. Run the game executable/script
  2. DO NOT click on anything.
  3. Press L to load a game
  4. Try to scroll down using keyboard down arrow: you can't.
  5. Click on the currently selected item (first savegame)
  6. Now, keyboard up/down works for that list and others but not all in the game.

Also, if you load the first savegame (by pressing Enter without needing to scroll) later lists don't work with the keyboard either (choosing a base, or a warehouse feature inside it (PC / Gaming PC..., network...)).

If you click on a savegame, choosing a base in the continent still doesn't work, but choosing a warehouse feature does work).

Another variant:

  1. Start a new game
  2. DO NOT click on anything
  3. Press R to get to the research list
  4. Try to scroll down using keyboard down arrow: you can't.
  5. Click on the currently selected research item (CPU Pool)
  6. Now, keyboard up/down works.
  7. Keyboard up/down still works after closing and re-opening the research list.

Expected behavior
Can use lists without using the mouse

Desktop (please complete the following information):

  • OS: Linux debian 5.3.0-3-amd64
  • Python version Python 3.7.5 (default, Oct 27 2019, 15:43:29) [GCC 9.2.1 20191022]
  • Version Singularity 1.0a1 (commit: singularity-1.0a1-53-g6ce8ee2)

Additional context
It is not a big inconvenience while playing, because once you have clicked every list in the game, they all work until you close the game and restart (can continue keyboard-only).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions