Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

BackSpace closes menus while using DisplayOnscreenKeyboard #119

Closed
manups4e opened this issue Aug 22, 2019 · 3 comments
Closed

BackSpace closes menus while using DisplayOnscreenKeyboard #119

manups4e opened this issue Aug 22, 2019 · 3 comments
Labels

Comments

@manups4e
Copy link

Use DisplayOnscreenKeyboard while a UIMenu is open, and if BackSpace is pressed the Menu will be go back / close

@manups4e
Copy link
Author

manups4e commented Aug 22, 2019

Solution that i found:
change if (HasControlJustBeenReleaseed(MenuControls.Back, key)) into if (HasControlJustBeenReleaseed(MenuControls.Back, key) && UpdateOnscreenKeyboard() != 0)
into UIMenu.cs: ProcessControl(Keys key = Keys.None)

@justalemon
Copy link
Collaborator

Why would you want to keep the menu open while the input text field is open?

Just hide it (UIMenu.Visible = false;) while the field is on the screen.

@manups4e
Copy link
Author

well.. i wanted the menu to be visible while textinput was open 😄 so i added a check on input pressing

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants