Skip to content

Commit db460f0

Browse files
authored
Merge 50ca6e4 into 20bdb39
2 parents 20bdb39 + 50ca6e4 commit db460f0

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

source/brailleDisplayDrivers/seikantk.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -308,13 +308,13 @@ def _handleKeys(self, arg: bytes):
308308
gestures = []
309309
if brailleDots:
310310
if key in (1, 2, 3): # bk:space+dots
311+
gestures.append(InputGesture(dots=brailleDots, space=key))
311312
key = 0
312-
gestures.append(InputGesture(dots=brailleDots, space=True))
313313
else: # bk:dots
314-
gestures.append(InputGesture(dots=brailleDots, space=False))
314+
gestures.append(InputGesture(dots=brailleDots, space=0))
315315
if key:
316316
if key in (1, 2): # bk:space
317-
gestures.append(InputGesture(dots=0, space=True))
317+
gestures.append(InputGesture(dots=0, space=key))
318318
else: # br(seikantk):XXX
319319
gestures.append(InputGesture(keys=key))
320320
for gesture in gestures:
@@ -391,7 +391,7 @@ def _getRoutingIndexes(routingKeyBytes: bytes) -> Set[int]:
391391
class InputGesture(braille.BrailleDisplayGesture, brailleInput.BrailleInputGesture):
392392
source = BrailleDisplayDriver.name
393393

394-
def __init__(self, keys=None, dots=None, space=False, routing=None):
394+
def __init__(self, keys=None, dots=None, space=0, routing=None):
395395
super(braille.BrailleDisplayGesture, self).__init__()
396396
# see what thumb keys are pressed:
397397
names = set()
@@ -400,8 +400,8 @@ def __init__(self, keys=None, dots=None, space=False, routing=None):
400400
elif dots is not None:
401401
self.dots = dots
402402
if space:
403-
self.space = space
404-
names.add(_keyNames[1])
403+
self.space = bool(space)
404+
names.update(_getKeyNames(space, _keyNames))
405405
names.update(_getKeyNames(dots, _dotNames))
406406
elif routing is not None:
407407
self.routingIndex = routing

user_docs/en/changes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ Please refer to [the developer guide](https://www.nvaccess.org/files/nvda/docume
164164
* It is now possible to redirect objects retrieved from on-screen coordinates, by using the `NVDAObject.objectFromPointRedirect` method. (#16788, @Emil-18)
165165
* Running SCons with the parameter `--all-cores` will automatically pick the maximum number of available CPU cores. (#16943, #16868, @LeonarddeR)
166166
* Developer info now includes information on app architecture (such as AMD64) for the navigator object. (#16488, @josephsl)
167+
* Correct internal gesture ID for Seika Notetaker. (#17047, @school510587)
167168

168169
#### Deprecations
169170

0 commit comments

Comments
 (0)