numlock/capslock/scrolllock should interrupt, not append

This commit is contained in:
chrys 2016-10-23 01:57:45 +02:00
parent 9f9690822a
commit 269a96d2ca
3 changed files with 6 additions and 6 deletions

View File

@ -19,9 +19,9 @@ class command():
if self.env['input']['oldCapsLock'] == self.env['input']['newCapsLock']:
return
if self.env['input']['newCapsLock']:
self.env['runtime']['outputManager'].presentText("Capslock on", interrupt=False)
self.env['runtime']['outputManager'].presentText("Capslock on", interrupt=True)
else:
self.env['runtime']['outputManager'].presentText("Capslock off", interrupt=False)
self.env['runtime']['outputManager'].presentText("Capslock off", interrupt=True)
def setCallback(self, callback):
pass

View File

@ -19,9 +19,9 @@ class command():
if self.env['input']['oldScrollLock'] == self.env['input']['newScrollLock']:
return
if self.env['input']['newScrollLock']:
self.env['runtime']['outputManager'].presentText("Scrolllock on", interrupt=False)
self.env['runtime']['outputManager'].presentText("Scrolllock on", interrupt=True)
else:
self.env['runtime']['outputManager'].presentText("Scrolllock off", interrupt=False)
self.env['runtime']['outputManager'].presentText("Scrolllock off", interrupt=True)
def setCallback(self, callback):
pass

View File

@ -19,9 +19,9 @@ class command():
if self.env['input']['oldNumLock'] == self.env['input']['newNumLock']:
return
if self.env['input']['newNumLock']:
self.env['runtime']['outputManager'].presentText("Numlock on", interrupt=False)
self.env['runtime']['outputManager'].presentText("Numlock on", interrupt=True)
else:
self.env['runtime']['outputManager'].presentText("Numlock off", interrupt=False)
self.env['runtime']['outputManager'].presentText("Numlock off", interrupt=True)
def setCallback(self, callback):
pass