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']:
|
if self.env['input']['oldCapsLock'] == self.env['input']['newCapsLock']:
|
||||||
return
|
return
|
||||||
if self.env['input']['newCapsLock']:
|
if self.env['input']['newCapsLock']:
|
||||||
self.env['runtime']['outputManager'].presentText("Capslock on", interrupt=False)
|
self.env['runtime']['outputManager'].presentText("Capslock on", interrupt=True)
|
||||||
else:
|
else:
|
||||||
self.env['runtime']['outputManager'].presentText("Capslock off", interrupt=False)
|
self.env['runtime']['outputManager'].presentText("Capslock off", interrupt=True)
|
||||||
|
|
||||||
def setCallback(self, callback):
|
def setCallback(self, callback):
|
||||||
pass
|
pass
|
||||||
|
@ -19,9 +19,9 @@ class command():
|
|||||||
if self.env['input']['oldScrollLock'] == self.env['input']['newScrollLock']:
|
if self.env['input']['oldScrollLock'] == self.env['input']['newScrollLock']:
|
||||||
return
|
return
|
||||||
if self.env['input']['newScrollLock']:
|
if self.env['input']['newScrollLock']:
|
||||||
self.env['runtime']['outputManager'].presentText("Scrolllock on", interrupt=False)
|
self.env['runtime']['outputManager'].presentText("Scrolllock on", interrupt=True)
|
||||||
else:
|
else:
|
||||||
self.env['runtime']['outputManager'].presentText("Scrolllock off", interrupt=False)
|
self.env['runtime']['outputManager'].presentText("Scrolllock off", interrupt=True)
|
||||||
|
|
||||||
def setCallback(self, callback):
|
def setCallback(self, callback):
|
||||||
pass
|
pass
|
||||||
|
@ -19,9 +19,9 @@ class command():
|
|||||||
if self.env['input']['oldNumLock'] == self.env['input']['newNumLock']:
|
if self.env['input']['oldNumLock'] == self.env['input']['newNumLock']:
|
||||||
return
|
return
|
||||||
if self.env['input']['newNumLock']:
|
if self.env['input']['newNumLock']:
|
||||||
self.env['runtime']['outputManager'].presentText("Numlock on", interrupt=False)
|
self.env['runtime']['outputManager'].presentText("Numlock on", interrupt=True)
|
||||||
else:
|
else:
|
||||||
self.env['runtime']['outputManager'].presentText("Numlock off", interrupt=False)
|
self.env['runtime']['outputManager'].presentText("Numlock off", interrupt=True)
|
||||||
|
|
||||||
def setCallback(self, callback):
|
def setCallback(self, callback):
|
||||||
pass
|
pass
|
||||||
|
Loading…
Reference in New Issue
Block a user