add interrupt on keypress
This commit is contained in:
parent
a2203361b3
commit
e797d8dd97
@ -24,6 +24,7 @@ driver=linux
|
|||||||
keyboardLayout=desktop
|
keyboardLayout=desktop
|
||||||
charEcho=False
|
charEcho=False
|
||||||
wordEcho=False
|
wordEcho=False
|
||||||
|
interruptOnKeyPress=False
|
||||||
|
|
||||||
[general]
|
[general]
|
||||||
debugLevel=0
|
debugLevel=0
|
||||||
|
@ -4,10 +4,11 @@ class command():
|
|||||||
def __init__(self):
|
def __init__(self):
|
||||||
pass
|
pass
|
||||||
def run(self, environment):
|
def run(self, environment):
|
||||||
|
if not environment['runtime']['settingsManager'].getSettingAsBool(environment, 'keyboard', 'interruptOnKeyPress'):
|
||||||
return environment
|
return environment
|
||||||
if environment['screenData']['newCursor'] == environment['screenData']['oldCursor'] and\
|
# if environment['screenData']['newCursor'] == environment['screenData']['oldCursor'] and\
|
||||||
environment['screenData']['newDelta'] == environment['screenData']['oldDelta']:
|
# environment['screenData']['newDelta'] == environment['screenData']['oldDelta']:
|
||||||
return environment
|
# return environment
|
||||||
environment['runtime']['outputManager'].interruptOutput(environment)
|
environment['runtime']['outputManager'].interruptOutput(environment)
|
||||||
return environment
|
return environment
|
||||||
def setCallback(self, callback):
|
def setCallback(self, callback):
|
||||||
|
@ -34,5 +34,6 @@ settings = {
|
|||||||
'keyboardLayout': "desktop",
|
'keyboardLayout': "desktop",
|
||||||
'charEcho':False,
|
'charEcho':False,
|
||||||
'wordEcho':True,
|
'wordEcho':True,
|
||||||
|
'interruptOnKeyPress': True,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user