mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Add check for typing
Former-commit-id: 582d0b5894f44f8491b671823b09f064d139df02
This commit is contained in:
parent
8754ea1661
commit
ec4bf7279a
@ -622,11 +622,11 @@ impl Hud {
|
||||
}
|
||||
true
|
||||
}
|
||||
WinEvent::InputUpdate(GameInput::ToggleInterface, true) => {
|
||||
WinEvent::InputUpdate(GameInput::ToggleInterface, true) if !self.typing() => {
|
||||
self.show.toggle_ui();
|
||||
true
|
||||
}
|
||||
WinEvent::InputUpdate(GameInput::ToggleCursor, true) => {
|
||||
WinEvent::InputUpdate(GameInput::ToggleCursor, true) if !self.typing() => {
|
||||
self.force_ungrab = !self.force_ungrab;
|
||||
if self.force_ungrab {
|
||||
global_state.window.grab_cursor(false);
|
||||
|
Loading…
Reference in New Issue
Block a user