Skip to content

Commit

Permalink
Improve Option Selector
Browse files Browse the repository at this point in the history
  • Loading branch information
AliRezaBeigy committed Feb 6, 2021
1 parent 750a2ac commit 69aa1af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions gitools/utils/option_selector.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ def getOption(self):
key = readKey(False)

# Arrow Up Pressed
if key == b"\x00H":
if key in [b"\x00H", b"\xe0H"]:
if self.selected_option > 0:
self.selected_option -= 1
# Arrow Down Pressed
elif key == b"\x00P":
elif key in [b"\xe0P", b"\x00P"]:
if self.selected_option < len(self.options) - 1:
self.selected_option += 1
# Enter Pressed
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

setup(
name="Gitools",
version="1.4.1",
version="1.4.2",
license="MIT",
author="AliReza Beigy",
author_email="[email protected]",
Expand Down

0 comments on commit 69aa1af

Please sign in to comment.