add option for brailleFocusMode
This commit is contained in:
parent
adcd7b04b5
commit
7fd98fe988
@ -130,6 +130,12 @@ scriptPath=/usr/share/fenrir/scripts
|
|||||||
[focus]
|
[focus]
|
||||||
cursor=True
|
cursor=True
|
||||||
highlight=False
|
highlight=False
|
||||||
|
How should the braille follow the focus
|
||||||
|
# manual = no automatic toggle command used
|
||||||
|
# review = priority to review
|
||||||
|
# last = follow last used cursor
|
||||||
|
# text = jumps to textcursor when typing, needs command to be back to review
|
||||||
|
brailleFocusMode=review
|
||||||
|
|
||||||
[review]
|
[review]
|
||||||
lineBreak=True
|
lineBreak=True
|
||||||
|
@ -133,6 +133,12 @@ scriptPath=/usr/share/fenrir/scripts
|
|||||||
cursor=True
|
cursor=True
|
||||||
#follow highlighted text changes
|
#follow highlighted text changes
|
||||||
highlight=False
|
highlight=False
|
||||||
|
How should the braille follow the focus
|
||||||
|
# manual = no automatic toggle command used
|
||||||
|
# review = priority to review
|
||||||
|
# last = follow last used cursor
|
||||||
|
# text = jumps to textcursor when typing, needs command to be back to review
|
||||||
|
brailleFocusMode=review
|
||||||
|
|
||||||
[review]
|
[review]
|
||||||
lineBreak=True
|
lineBreak=True
|
||||||
|
@ -132,6 +132,12 @@ scriptPath=/usr/share/fenrir/scripts
|
|||||||
cursor=True
|
cursor=True
|
||||||
#follow highlighted text changes
|
#follow highlighted text changes
|
||||||
highlight=False
|
highlight=False
|
||||||
|
How should the braille follow the focus
|
||||||
|
# manual = no automatic toggle command used
|
||||||
|
# review = priority to review
|
||||||
|
# last = follow last used cursor
|
||||||
|
# text = jumps to textcursor when typing, needs command to be back to review
|
||||||
|
brailleFocusMode=review
|
||||||
|
|
||||||
[review]
|
[review]
|
||||||
lineBreak=True
|
lineBreak=True
|
||||||
|
@ -83,6 +83,12 @@ scriptPath=/usr/share/fenrir/scripts
|
|||||||
cursor=True
|
cursor=True
|
||||||
#follow highlighted text changes
|
#follow highlighted text changes
|
||||||
highlight=False
|
highlight=False
|
||||||
|
How should the braille follow the focus
|
||||||
|
# manual = no automatic toggle command used
|
||||||
|
# review = priority to review
|
||||||
|
# last = follow last used cursor
|
||||||
|
# text = jumps to textcursor when typing, needs command to be back to review
|
||||||
|
brailleFocusMode=review
|
||||||
|
|
||||||
[review]
|
[review]
|
||||||
lineBreak=True
|
lineBreak=True
|
||||||
|
@ -13,14 +13,15 @@ class driver():
|
|||||||
def initialize(self, environment):
|
def initialize(self, environment):
|
||||||
self.env = environment
|
self.env = environment
|
||||||
self._isInitialized = True
|
self._isInitialized = True
|
||||||
|
self.deviceSize = (40,0)
|
||||||
print('BrailleDummyDriver: Initialize')
|
print('BrailleDummyDriver: Initialize')
|
||||||
|
|
||||||
|
|
||||||
def getDeviceSize(self):
|
def getDeviceSize(self):
|
||||||
if not self._isInitialized:
|
if not self._isInitialized:
|
||||||
return (0,0)
|
return (0,0)
|
||||||
print('BrailleDummyDriver: getDeviceSize 20')
|
print('BrailleDummyDriver: getDeviceSize ' + str(self.deviceSize))
|
||||||
return (20,0)
|
return self.deviceSize
|
||||||
|
|
||||||
def writeText(self,text):
|
def writeText(self,text):
|
||||||
if not self._isInitialized:
|
if not self._isInitialized:
|
||||||
|
@ -61,6 +61,7 @@ settings = {
|
|||||||
'focus':{
|
'focus':{
|
||||||
'cursor': True,
|
'cursor': True,
|
||||||
'highlight': False,
|
'highlight': False,
|
||||||
|
'brailleFocusMode': 'review',
|
||||||
},
|
},
|
||||||
'review':{
|
'review':{
|
||||||
'lineBreak': True,
|
'lineBreak': True,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user