filter out unneeded events, improve interrupt commands
This commit is contained in:
@ -16,6 +16,8 @@ class command():
|
||||
def getDescription(self):
|
||||
return 'interrupts the current presentation'
|
||||
def run(self):
|
||||
if len(self.env['input']['prevDeepestInput']) > len(self.env['input']['currInput']):
|
||||
return
|
||||
self.env['runtime']['outputManager'].interruptOutput()
|
||||
def setCallback(self, callback):
|
||||
pass
|
||||
|
@ -19,6 +19,8 @@ class command():
|
||||
def run(self):
|
||||
if self.env['runtime']['inputManager'].noKeyPressed():
|
||||
return
|
||||
if len(self.env['input']['prevDeepestInput']) > len(self.env['input']['currInput']):
|
||||
return
|
||||
if not self.env['runtime']['settingsManager'].getSettingAsBool('keyboard', 'interruptOnKeyPress'):
|
||||
return
|
||||
if self.env['screenData']['newTTY'] != self.env['screenData']['oldTTY']:
|
||||
|
Reference in New Issue
Block a user