Bug #3878
UI Elements don't capture keyboard and mouse on Linux (regarding Flags, VAB, SPH, Actiongroups and more)
100%
Description
(This is an update for version 0.90 and replaces bug #3437. Please close the old bug)
Short Description¶
This bug's issues lead to issues of "click through UI" and "not captured data entry".
Reproduction¶
To reproduce keyboard bug (1):¶
- Go to VAB
- Select any root part
- (1) Go to vehicle name field or description field and move the cursor with the left/right/up/down keys. Watch how the view rotates, while the cursor is also moved in the field.
Another keyboard bug (2):¶
- Launch a flight with only the Mk1-2 Command Pod
- Right click on the pod and select "Rename Vessel"
- Enter the letter "c" in the name field. The view switches to IVA view.
To reproduce mouse bug (3):¶
- Go to VAB
- Select a large root part (i.e. Mk1-2 Command Pod)
- Scroll down view until Command Pod is beneath vehicle name field.
- You can now right click through the name field or the description text field.
Another mouse bug (4):¶
- Launch a flight with only the Mk1-2 Command Pod
- Right click on the pod and select "Rename Vessel"
- Move the mouse over the pod and watch it being highlighted in green even if the mouse is over the renaming UI window. (Compare this behavior with the right click dialog itself. Here the mouse is captured by the UI properly)
Another keyboard bug (5):¶
The keyboard capturing error occurrs also when typing into the title and text box when placing a new flag.
Another mouse bug (6):¶
On a mission, open the "done contracts" popup (there must be some available :). Clicking the delete or close button will click through. If you place some left-clickable part under the button (i.e. the hatch of a vessel), the EVA/transfer dialog will open.
All bugs seem to be related with the UI not capturing inputs properly. The behavior is very much pronounced when using addons/mods which require data or text entry and heavily affects KSP's usability. They are however very visible and very annoying in the game itself and leads to unplanned and unexpected bahavior, making the usage of action groups very dangerous.
Summary¶
This bug is related to both, mouse and keyboard behavior and might be split into two bugs.
This bug should be considered high, as it is a bug at a very low level regarding most of the UI and shows the need for a general review of in-game mouse and keyboard handling.
This is a linux-only bug, but it seems to be an issue on such a basic level, that the priority should not be set lower than normal to solve the root cause and not just singular issues!
How KSP should behave:¶
- Example 1 (Keyboard): While a cursor is active (any text entry), the keyboard entries should be fully captured.
- Example 2 (Mouse): In the building selection menu right click on a building (i.e. VAB). A context window pops up. It properly captures the mouse and does not allow click through. (It captures the mouse whereever on the screen it is)
- Example 3 (Mouse): In the same view open the contracts overview. Rotate the view so that some clickable building is beneath the contract list. Now you cannot click through. (It does not capture the mouse completely, you can still highlight/click on the buildings outside the contract list)
- Example 4 (Mouse): Start a flight with the Mk1-2 Command Pod only. Right click the pod. Move the mouse in and out of the context menu. The pod will only be highlighted when the mouse is outside the menu. This should be true to all UI elements!
Related issues
History
#1 Updated by seehp about 10 years ago
Another Keyboard Bug (7):¶
Go to the launch pad or runway with any vessel. Click on the command module and select rename vessel. In the textbox use the delete key (i.e. to delete some text right from the cursor) and watch the mode being switched to docking mode.
#2 Updated by Ted about 10 years ago
- Status changed from New to Duplicate
- % Done changed from 0 to 100
Thanks for the report. Just an FYI though, our tracker methodology calls for updating the original issue and not simply creating a new one for each update. Hence I'll be closing the new issue as a duplicate. Again, your efforts in reporting and isolating the issue are greatly appreciated.
I'll be posting notes about the issue's status to the old issue, please see that.
#3 Updated by seehp about 10 years ago
OK, please update the "old" bug with my new data and also the version information (it was still set to 0.25 and I could not update it).