Skip to content

Commit

Permalink
test self.HIGHER_ASCII ord first, bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
Neradoc committed Oct 2, 2021
1 parent 2d20103 commit 8e46bdd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libraries/common/keyboard_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"""


__version__ = "2.0.0-auto.0"
__version__ = "3.0.0-auto.0"
__repo__ = "https://github.com/Neradoc/Circuitpython_Keyboard_Layouts.git"


Expand Down Expand Up @@ -109,10 +109,10 @@ def _above128char_to_keycode(self, char):
:param char_val: ascii char value
:return: keycode, with modifiers if needed
"""
if char in self.HIGHER_ASCII:
return self.HIGHER_ASCII[char]
if ord(char) in self.HIGHER_ASCII:
return self.HIGHER_ASCII[ord(char)]
if char in self.HIGHER_ASCII:
return self.HIGHER_ASCII[char]
return 0

def _char_to_keycode(self, char):
Expand Down

0 comments on commit 8e46bdd

Please sign in to comment.