Release host Ctrl on Ctrl+Q

This commit is contained in:
RunasSudo 2019-11-18 14:56:53 +11:00
parent 50dd3f3c0e
commit d0b162c6f2
Signed by: RunasSudo
GPG Key ID: 7234E476BF21C61A

View File

@ -94,6 +94,7 @@ async def keyboardinp():
if button == '37': if button == '37':
is_ctrl = True is_ctrl = True
if button == '24' and is_ctrl: # Ctrl+Q if button == '24' and is_ctrl: # Ctrl+Q
print('DISPLAY=:0 xdotool keyup 37') # Release Ctrl
sys.exit(0) sys.exit(0)
return return