micropython: Use separate keys for CTRL + C.

Since each :kbd: key is rendered as a button, it is more intuitive to
render them separately. (There is no CTRL-C button.)

Fixes https://github.com/pybricks/pybricks-api/issues/125
This commit is contained in:
Laurens Valk
2022-12-08 09:32:08 +01:00
parent e939c14fee
commit 72f5cb6827
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -177,9 +177,9 @@ def kbd_intr(chr: int) -> None:
"""
kbd_intr(chr)
Sets the character that raises a ``KeyboardInterrupt`` exception when
Sets the character that triggers a ``KeyboardInterrupt`` exception when
you type it in the input window. By default it is set to ``3``,
corresponding to :kbd:`Ctrl-C`.
which corresponds to pressing :kbd:`Ctrl` :kbd:`C`.
Arguments:
chr (int): Character that should raise the ``KeyboardInterrupt``.
+1 -1
View File
@@ -1399,7 +1399,7 @@ class KeyError(LookupError):
class KeyboardInterrupt(BaseException):
"""
Raised when the user hits the interrupt key (normally :kbd:`Control-C`).
Raised when the user hits the interrupt key (normally :kbd:`Ctrl` :kbd:`C`).
"""