From d8442c8f04bf43996b9bb02ed12526cb785b9d68 Mon Sep 17 00:00:00 2001 From: chrys Date: Thu, 22 Dec 2016 22:54:40 +0100 Subject: [PATCH] ignore space in horizontal movement --- .../onInput/45000-present_char_if_cursor_change_horizontal.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fenrir/commands/onInput/45000-present_char_if_cursor_change_horizontal.py b/src/fenrir/commands/onInput/45000-present_char_if_cursor_change_horizontal.py index 3666c2e9..0926b53e 100644 --- a/src/fenrir/commands/onInput/45000-present_char_if_cursor_change_horizontal.py +++ b/src/fenrir/commands/onInput/45000-present_char_if_cursor_change_horizontal.py @@ -36,7 +36,8 @@ class command(): if not self.env['runtime']['cursorManager'].isCursorHorizontalMove(): return x, y, currChar = char_utils.getCurrentChar(self.env['screenData']['newCursor']['x'], self.env['screenData']['newCursor']['y'], self.env['screenData']['newContentText']) - self.env['runtime']['outputManager'].presentText(currChar, interrupt=True, ignorePunctuation=True, announceCapital=True) + if not currChar.isspace(): + self.env['runtime']['outputManager'].presentText(currChar, interrupt=True, ignorePunctuation=True, announceCapital=True) def setCallback(self, callback): pass