ImGui Keybindings window. Inactive search bar
Describe the bug
The keybindings window (settings / keybindings). The search string does not become active.
To be more precise, it sometimes becomes inactive (does not allow you to enter text). The behavior is as follows. When opening a window, the cursor blinks once and disappears. When pressing keys nothing is typed.
The interface must be enabled. Use imGui UI: true
Attach save file
N/A
Steps to reproduce
- Default settings
- Enable imGui (settings / options / interface / Use imGui UI: true)
- Open the keybindings menu
- Try typing. If you succeed, go to the next step.
- Close the game and open it again.
- Go to step 3
Alternatively 1.
- Open the keybindings menu
- Close the keybindings menu
- Open another menu (safemode, options or create a world)
- Close this menu
- Go to step 1
Alternatively 2. After opening the keybindings menu, press enter. Try typing in the text
Expected behavior
The search bar should always be active.
Screenshots
No response
Versions and configuration
Game version: cdda-windows-tiles-x64-2024-02-28-2115
Additional context
If you disable imGui, everything works fine.
I personally am not reproducing this locally. Maybe some more information is needed about your environment? Are you reproducing this reliably? 100% of the time? 50?
I tried it on two systems
- archlinux + PortProton
- windows 10 (virtual machine)
Basic method: ~80% Alternatively 1: ~30% maybe a little more Alternatively 2: 100%
Can you enter text? If you pressed enter.
Getting back to this now that I am done with android... So you emulate cataclysm? You don't play on the Linux build?
Yes, I'm using the windows version (cdda-windows-tiles-x64-2024-03-13-0502). But I run it through the emulator.
Ok. What happens if you run cataclysm locally?
The same thing is happening.
UPD. The link is to the video. https://github.com/CleverRaven/Cataclysm-DDA/assets/155764584/6277f286-ab55-48b6-8816-08115e2e1b71
On a windows 10 computer, it's similar. Only there are also artifacts from the window.
Hi just checking. Still reproducible after #72501? Any change?
cdda-windows-tiles-x64-2024-03-25-0528
No change. The error still occurs.
UPD. #72600 It seems to me that this is a similar problem. After merging #72604 I'll have to check it out.
OK I finally figured out how to reproduce this locally. The problem is that I always open the keybindings screen with the mouse. At least for me, opening the screen with the keyboard seems to be what reproduces the issue. still researching a solution.
Confirmed. If I use the mouse and don't use the keyboard, I have no problems.
After the keybindings window opens. Press enter. Where does the focus go from the window? If it's about the focus at all. Maybe there is a similar signal when using the keyboard?