Skip to content

Commit

Permalink
add DELETE as an alias of SUPR
Browse files Browse the repository at this point in the history
  • Loading branch information
Cube707 committed Aug 13, 2022
1 parent ed97124 commit 10a7998
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions readchar/_posix_key.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
# navigation keys
INSERT = "\x1b\x5b\x32\x7e"
SUPR = "\x1b\x5b\x33\x7e"
DELETE = SUPR
HOME = "\x1b\x5b\x48"
END = "\x1b\x5b\x46"
PAGE_UP = "\x1b\x5b\x35\x7e"
Expand Down
1 change: 1 addition & 0 deletions readchar/_win_key.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
# navigation keys
INSERT = "\x00\x52"
SUPR = "\x00\x53"
DELETE = SUPR
HOME = "\x00\x47"
END = "\x00\x4f"
PAGE_UP = "\x00\x49"
Expand Down
2 changes: 1 addition & 1 deletion tests/linux/test_keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def test_character_length_3_lenght(key):
assert 3 == len(keys.__dict__[key])


len4_keys = ["INSERT", "SUPR", "PAGE_UP", "PAGE_DOWN"]
len4_keys = ["INSERT", "SUPR", "DELETE", "PAGE_UP", "PAGE_DOWN"]


@pytest.mark.parametrize("key", len4_keys)
Expand Down
1 change: 1 addition & 0 deletions tests/windows/test_keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def test_defaultKeysLength(key):
specialKeys = [
"INSERT",
"SUPR",
"DELETE",
"PAGE_UP",
"PAGE_DOWN",
"HOME",
Expand Down

0 comments on commit 10a7998

Please sign in to comment.