add option for brailleFocusMode

This commit is contained in:
chrys 2017-01-31 00:12:17 +01:00
parent adcd7b04b5
commit 7fd98fe988
6 changed files with 28 additions and 2 deletions

View File

@ -130,6 +130,12 @@ scriptPath=/usr/share/fenrir/scripts
[focus]
cursor=True
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]
lineBreak=True

View File

@ -133,6 +133,12 @@ scriptPath=/usr/share/fenrir/scripts
cursor=True
#follow highlighted text changes
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]
lineBreak=True

View File

@ -132,6 +132,12 @@ scriptPath=/usr/share/fenrir/scripts
cursor=True
#follow highlighted text changes
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]
lineBreak=True

View File

@ -83,6 +83,12 @@ scriptPath=/usr/share/fenrir/scripts
cursor=True
#follow highlighted text changes
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]
lineBreak=True

View File

@ -13,14 +13,15 @@ class driver():
def initialize(self, environment):
self.env = environment
self._isInitialized = True
self.deviceSize = (40,0)
print('BrailleDummyDriver: Initialize')
def getDeviceSize(self):
if not self._isInitialized:
return (0,0)
print('BrailleDummyDriver: getDeviceSize 20')
return (20,0)
print('BrailleDummyDriver: getDeviceSize ' + str(self.deviceSize))
return self.deviceSize
def writeText(self,text):
if not self._isInitialized:

View File

@ -61,6 +61,7 @@ settings = {
'focus':{
'cursor': True,
'highlight': False,
'brailleFocusMode': 'review',
},
'review':{
'lineBreak': True,