numlock/capslock/scrolllock should interrupt, not append
This commit is contained in:
parent
9f9690822a
commit
269a96d2ca
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user