Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In the controls menu, tapping Enter to choose a mapping, automatically choses Enter as mapped key #125

Open
64kramsystem opened this issue Jul 24, 2022 · 3 comments
Assignees
Labels
kind:bug Something isn't working scope:small A small and well-defined task

Comments

@64kramsystem
Copy link
Member

Description

If one wants to remap a control, and taps Enter, the control is mapped to Enter, without allowing to choose any other key.

To Reproduce

  • Go to the controls menu
  • Move to a control mapping (e.g. "Up", for "Keyboard 2" -> "Move Up")
  • Tap enter

Enter is now assigned.

Expected Behavior

The mapping "Press an input or press Escape to cancel" dialog should be displayed.

Additional Context

The mapping dialog is actually displayed, for a fraction of second. It seems that then tapping enter, the enter keypress is sent to the dialog as well, which thinks that Enter is the chosen key.

Log Messages

No response

@64kramsystem 64kramsystem added kind:bug Something isn't working scope:undetermined Undetermined size, needs investigation labels Jul 24, 2022
@zicklag
Copy link
Member

zicklag commented Jul 24, 2022

Oh, bummer. I had a lot of trouble with fixing that, and apparently the fix worked on my machine and not your machine. :/

I wasn't 100% sure that the solution I had in place to avoid that issue that was good enough, but now I know that it's not. If nobody fixes it first I'll get to this when I implement the bindings menu refactor.

@zicklag zicklag added scope:small A small and well-defined task and removed scope:undetermined Undetermined size, needs investigation labels Jul 27, 2022
@zicklag zicklag added this to the v0.0.4 milestone Jul 27, 2022
@zicklag zicklag self-assigned this Jul 27, 2022
@DRuppFv
Copy link
Contributor

DRuppFv commented Jul 28, 2022

It's also happening to me, but for some reason, with the Space key. When i move to a control mapping, and tap Space, Space is assigned, but it doesn't happens to any other key. The same happens with Enter, Enter is also assigned, but it allows me to choose a key.

Obs: I realized that the button doesn't have an "down" animation when something is selected with Space or Enter, then the solution may be to make the Enter and Space act as a normal mouse click.

@zicklag
Copy link
Member

zicklag commented Jul 28, 2022

Thanks for the extra info @DRuppFv! I just tried it again on my machine and I'm noticing the same results now. Not sure why I didn't run into the same thing earlier, but it's definitely something I'll work on fixing.

WRT the button down animation for pressing buttons, it's little bit of a weird thing because pressing enter triggers whatever button is highlighted immediately, but when a mouse clicks on it, we only trigger when you release the mouse button.

Do you think it would make sense to only trigger the button when you release the enter key, and therefore play the animation while the button is down? PS: We should probably open a new issue. :)

@zicklag zicklag modified the milestones: v0.0.4, v0.0.5 Aug 9, 2022
@zicklag zicklag removed this from the v0.1.0 milestone Sep 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug Something isn't working scope:small A small and well-defined task
Projects
None yet
Development

No branches or pull requests

3 participants