mirror of
https://github.com/lightsoutgames/godot-accessibility.git
synced 2024-11-22 11:55:56 +00:00
Don't automatically grab keyboard focus on mouse-enter, since that seems to interfere with keyboard traversal somehow.
This commit is contained in:
parent
de2f22b0c2
commit
977b3407ea
|
@ -400,8 +400,9 @@ func unfocus():
|
||||||
func click_focus():
|
func click_focus():
|
||||||
if node.has_focus():
|
if node.has_focus():
|
||||||
return
|
return
|
||||||
print("Grabbing focus: %s" % node)
|
# print("Grabbing focus: %s" % node)
|
||||||
node.grab_focus()
|
# node.grab_focus()
|
||||||
|
focus()
|
||||||
|
|
||||||
func gui_input(event):
|
func gui_input(event):
|
||||||
if event is InputEventKey and event.pressed and not event.echo and event.scancode == KEY_MENU:
|
if event is InputEventKey and event.pressed and not event.echo and event.scancode == KEY_MENU:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user