ocarina: Window grabs focus on escape
Pressing the escape key will cause the window to grab focus
This commit is contained in:
parent
a639c520f5
commit
dc418df572
|
@ -21,6 +21,10 @@ window.connect("key-press-event", shortcuts.key_pressed)
|
|||
window.add(body.body)
|
||||
window.show()
|
||||
|
||||
def grab_focus():
|
||||
window.set_focus(None)
|
||||
shortcuts.register_shortcut("Escape", grab_focus, True)
|
||||
|
||||
def set_title(new_title = None):
|
||||
if new_title == None:
|
||||
new_title = ocarina.__vers__
|
||||
|
|
Loading…
Reference in New Issue
Block a user