add key echo for capslock
This commit is contained in:
parent
99496e121b
commit
9a3778e25f
@ -134,7 +134,10 @@ ignoreShortcuts=False
|
|||||||
# the current shortcut layout located in /etc/fenrirscreenreader/keyboard
|
# the current shortcut layout located in /etc/fenrirscreenreader/keyboard
|
||||||
keyboardLayout=desktop
|
keyboardLayout=desktop
|
||||||
# echo chars while typing.
|
# echo chars while typing.
|
||||||
charEcho=True
|
# 0 = None
|
||||||
|
# 1 = always
|
||||||
|
# 2 = only while capslock
|
||||||
|
charEchoMode=2
|
||||||
## echo deleted chars
|
## echo deleted chars
|
||||||
charDeleteEcho=True
|
charDeleteEcho=True
|
||||||
# echo word after pressing space
|
# echo word after pressing space
|
||||||
|
@ -136,7 +136,10 @@ ignoreShortcuts=False
|
|||||||
# the current shortcut layout located in /etc/fenrirscreenreader/keyboard
|
# the current shortcut layout located in /etc/fenrirscreenreader/keyboard
|
||||||
keyboardLayout=desktop
|
keyboardLayout=desktop
|
||||||
# echo chars while typing.
|
# echo chars while typing.
|
||||||
charEcho=False
|
# 0 = None
|
||||||
|
# 1 = always
|
||||||
|
# 2 = only while capslock
|
||||||
|
charEchoMode=2
|
||||||
# echo deleted chars
|
# echo deleted chars
|
||||||
charDeleteEcho=True
|
charDeleteEcho=True
|
||||||
# echo word after pressing space
|
# echo word after pressing space
|
||||||
|
@ -136,7 +136,10 @@ ignoreShortcuts=False
|
|||||||
# the current shortcut layout located in /etc/fenrirscreenreader/keyboard
|
# the current shortcut layout located in /etc/fenrirscreenreader/keyboard
|
||||||
keyboardLayout=desktop
|
keyboardLayout=desktop
|
||||||
# echo chars while typing.
|
# echo chars while typing.
|
||||||
charEcho=False
|
# 0 = None
|
||||||
|
# 1 = always
|
||||||
|
# 2 = only while capslock
|
||||||
|
charEchoMode=2
|
||||||
# echo deleted chars
|
# echo deleted chars
|
||||||
charDeleteEcho=True
|
charDeleteEcho=True
|
||||||
# echo word after pressing space
|
# echo word after pressing space
|
||||||
|
@ -137,7 +137,10 @@ ignoreShortcuts=False
|
|||||||
# the current shortcut layout located in /etc/fenrirscreenreader/keyboard
|
# the current shortcut layout located in /etc/fenrirscreenreader/keyboard
|
||||||
keyboardLayout=desktop
|
keyboardLayout=desktop
|
||||||
# echo chars while typing.
|
# echo chars while typing.
|
||||||
charEcho=False
|
# 0 = None
|
||||||
|
# 1 = always
|
||||||
|
# 2 = only while capslock
|
||||||
|
charEchoMode=2
|
||||||
# echo deleted chars
|
# echo deleted chars
|
||||||
charDeleteEcho=True
|
charDeleteEcho=True
|
||||||
# echo word after pressing space
|
# echo word after pressing space
|
||||||
|
@ -137,7 +137,10 @@ ignoreShortcuts=False
|
|||||||
# the current shortcut layout located in /etc/fenrirscreenreader/keyboard
|
# the current shortcut layout located in /etc/fenrirscreenreader/keyboard
|
||||||
keyboardLayout=desktop
|
keyboardLayout=desktop
|
||||||
# echo chars while typing.
|
# echo chars while typing.
|
||||||
charEcho=False
|
# 0 = None
|
||||||
|
# 1 = always
|
||||||
|
# 2 = only while capslock
|
||||||
|
charEchoMode=2
|
||||||
# echo deleted chars
|
# echo deleted chars
|
||||||
charDeleteEcho=True
|
charDeleteEcho=True
|
||||||
# echo word after pressing space
|
# echo word after pressing space
|
||||||
|
@ -88,7 +88,10 @@ device=ALL
|
|||||||
grabDevices=True
|
grabDevices=True
|
||||||
ignoreShortcuts=False
|
ignoreShortcuts=False
|
||||||
keyboardLayout=desktop
|
keyboardLayout=desktop
|
||||||
charEcho=False
|
# 0 = None
|
||||||
|
# 1 = always
|
||||||
|
# 2 = only while capslock
|
||||||
|
charEchoMode=2
|
||||||
charDeleteEcho=True
|
charDeleteEcho=True
|
||||||
wordEcho=False
|
wordEcho=False
|
||||||
interruptOnKeyPress=True
|
interruptOnKeyPress=True
|
||||||
|
@ -136,7 +136,10 @@ ignoreShortcuts=False
|
|||||||
# the current shortcut layout located in /etc/fenrirscreenreader/keyboard
|
# the current shortcut layout located in /etc/fenrirscreenreader/keyboard
|
||||||
keyboardLayout=desktop
|
keyboardLayout=desktop
|
||||||
# echo chars while typing.
|
# echo chars while typing.
|
||||||
charEcho=False
|
# 0 = None
|
||||||
|
# 1 = always
|
||||||
|
# 2 = only while capslock
|
||||||
|
charEchoMode=2
|
||||||
# echo deleted chars
|
# echo deleted chars
|
||||||
charDeleteEcho=True
|
charDeleteEcho=True
|
||||||
# echo word after pressing space
|
# echo word after pressing space
|
||||||
|
@ -17,9 +17,13 @@ class command():
|
|||||||
return 'No Description found'
|
return 'No Description found'
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
# enabled?
|
# enabled?
|
||||||
if not self.env['runtime']['settingsManager'].getSettingAsBool('keyboard', 'charEcho'):
|
active = self.env['runtime']['settingsManager'].getSettingAsInt('keyboard', 'charEchoMode')
|
||||||
|
if active == 0:
|
||||||
return
|
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)
|
# 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'])
|
xMove = abs(self.env['screen']['newCursor']['x'] - self.env['screen']['oldCursor']['x'])
|
||||||
if xMove > 3:
|
if xMove > 3:
|
||||||
|
@ -124,7 +124,8 @@ settingsData = {
|
|||||||
'grabDevices': True,
|
'grabDevices': True,
|
||||||
'ignoreShortcuts': False,
|
'ignoreShortcuts': False,
|
||||||
'keyboardLayout': "desktop",
|
'keyboardLayout': "desktop",
|
||||||
'charEcho': False,
|
'charEcho': False, # deprecated
|
||||||
|
'charEchoMode': 2,
|
||||||
'charDeleteEcho': True,
|
'charDeleteEcho': True,
|
||||||
'wordEcho': True,
|
'wordEcho': True,
|
||||||
'interruptOnKeyPress': True,
|
'interruptOnKeyPress': True,
|
||||||
|
Loading…
Reference in New Issue
Block a user