Skip to content

Commit 81daa5b

Browse files
committed
there is no right ctrl on mac keyboard =/
1 parent 93fe6d9 commit 81daa5b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ I also created the porting of the [Numworks' Kandinsky module](https://github.co
9898
| . | . | KEY_DOT | 49
9999
| EE | ! | KEY_EE | 50
100100
| Ans | A | KEY_ANS | 51
101-
| EXE | Insert *(For MacOS: CTRL+Return)* | KEY_EXE | 52
101+
| EXE | Insert *(For MacOS: Shift+Return)* | KEY_EXE | 52
102102

103103

104104
### Environ variables

src/ion/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ I also created the porting of the [Numworks' Kandinsky module](https://github.co
9898
| . | . | KEY_DOT | 49
9999
| EE | ! | KEY_EE | 50
100100
| Ans | A | KEY_ANS | 51
101-
| EXE | Insert *(For MacOS: CTRL+Return)* | KEY_EXE | 52
101+
| EXE | Insert *(For MacOS: Shift+Return)* | KEY_EXE | 52
102102

103103

104104
### Environ variables

src/ion/util/stuff/keys.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@
4545
KEY_ZERO: int = {'code': 48, 'name': '0', 'key': '0'}
4646
KEY_DOT: int = {'code': 49, 'name': '.', 'key': '.'}
4747
KEY_EE: int = {'code': 50, 'name': 'EE', 'key': '!'}
48-
KEY_ANS: int = {'code': 51, 'name': 'Ans', 'key': 'a'} # vv Insert doesn't exists on mac keyboards, so use ctrl+enter
49-
KEY_EXE: int = {'code': 52, 'name': 'EXE', 'key': (Key.ctrl, Key.enter) if sys.platform.startswith("darwin") else Key.insert}
48+
KEY_ANS: int = {'code': 51, 'name': 'Ans', 'key': 'a'} # vv Insert doesn't exists on mac keyboards, so use shift+enter
49+
KEY_EXE: int = {'code': 52, 'name': 'EXE', 'key': (Key.shift, Key.enter) if sys.platform.startswith("darwin") else Key.insert}
5050

5151
# Put all keys in ALL_KEYS and redefine each key only by its code
5252
ALL_KEYS = []

0 commit comments

Comments
 (0)