Cataclysm-DDA icon indicating copy to clipboard operation
Cataclysm-DDA copied to clipboard

ImGui Keybindings window. Inactive search bar

Open IdleSol opened this issue 1 year ago • 8 comments

Describe the bug

The keybindings window (settings / keybindings). The search string does not become active. 2

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

  1. Default settings
  2. Enable imGui (settings / options / interface / Use imGui UI: true)
  3. Open the keybindings menu
  4. Try typing. If you succeed, go to the next step.
  5. Close the game and open it again.
  6. Go to step 3

Alternatively 1.

  1. Open the keybindings menu
  2. Close the keybindings menu
  3. Open another menu (safemode, options or create a world)
  4. Close this menu
  5. 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.

IdleSol avatar Feb 29 '24 07:02 IdleSol

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?

katemonster33 avatar Feb 29 '24 20:02 katemonster33

I tried it on two systems

  1. archlinux + PortProton
  2. 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.

IdleSol avatar Feb 29 '24 21:02 IdleSol

Getting back to this now that I am done with android... So you emulate cataclysm? You don't play on the Linux build?

katemonster33 avatar Mar 13 '24 00:03 katemonster33

Yes, I'm using the windows version (cdda-windows-tiles-x64-2024-03-13-0502). But I run it through the emulator.

IdleSol avatar Mar 13 '24 06:03 IdleSol

Ok. What happens if you run cataclysm locally?

katemonster33 avatar Mar 13 '24 15:03 katemonster33

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.

IdleSol avatar Mar 13 '24 16:03 IdleSol

Hi just checking. Still reproducible after #72501? Any change?

katemonster33 avatar Mar 24 '24 20:03 katemonster33

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.

IdleSol avatar Mar 25 '24 07:03 IdleSol

cdda-windows-tiles-x64-2024-03-26-1759

Nothing has changed.

IdleSol avatar Mar 26 '24 22:03 IdleSol

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.

katemonster33 avatar Mar 27 '24 19:03 katemonster33

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?

IdleSol avatar Mar 27 '24 20:03 IdleSol