From 5c44154759885c6560cb75bf5a9261e11632ceee Mon Sep 17 00:00:00 2001 From: Astariul Date: Fri, 10 May 2024 07:53:45 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20punctuation=20issue=20with?= =?UTF-8?q?=20fleksy=20keyboard?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kebbie/emulator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kebbie/emulator.py b/kebbie/emulator.py index 730c2d3..33701dd 100644 --- a/kebbie/emulator.py +++ b/kebbie/emulator.py @@ -398,8 +398,8 @@ def _paste(self, text: str): # (which is what we want). On iOS it will not, we need to do it "manually" if self.platform == IOS: self.typing_field.clear() - if self.keyboard == KBKITPRO or self.keyboard == KBKITOSS: - # In the case of KeyboardKit, after pasting the content, typing a space + if self.keyboard == KBKITPRO or self.keyboard == KBKITOSS or self.keyboard == FLEKSY: + # In the case of KeyboardKit / Fleksy, after pasting the content, typing a space # trigger a punctuation (because previous context may end with a space) # To avoid this behavior, break the cycle by typing a backspace self._tap(self.layout["lowercase"]["backspace"])