add key echo for capslock
This commit is contained in:
@ -17,9 +17,13 @@ class command():
|
||||
return 'No Description found'
|
||||
|
||||
def run(self):
|
||||
# enabled?
|
||||
if not self.env['runtime']['settingsManager'].getSettingAsBool('keyboard', 'charEcho'):
|
||||
# enabled?
|
||||
active = self.env['runtime']['settingsManager'].getSettingAsInt('keyboard', 'charEchoMode')
|
||||
if active == 0:
|
||||
return
|
||||
if active == 2:
|
||||
if not self.env['input']['newCapsLock']:
|
||||
return
|
||||
# big changes are no char (but the value is bigger than one maybe the differ needs longer than you can type, so a little strange random buffer for now)
|
||||
xMove = abs(self.env['screen']['newCursor']['x'] - self.env['screen']['oldCursor']['x'])
|
||||
if xMove > 3:
|
||||
|
@ -124,7 +124,8 @@ settingsData = {
|
||||
'grabDevices': True,
|
||||
'ignoreShortcuts': False,
|
||||
'keyboardLayout': "desktop",
|
||||
'charEcho': False,
|
||||
'charEcho': False, # deprecated
|
||||
'charEchoMode': 2,
|
||||
'charDeleteEcho': True,
|
||||
'wordEcho': True,
|
||||
'interruptOnKeyPress': True,
|
||||
|
Reference in New Issue
Block a user