Skip to content

Commit

Permalink
🐛 Fix punctuation issue with fleksy keyboard
Browse files Browse the repository at this point in the history
  • Loading branch information
astariul committed May 9, 2024
1 parent 978116e commit 5c44154
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kebbie/emulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"])
Expand Down

0 comments on commit 5c44154

Please sign in to comment.