The PIN reveal moves to ^E, so ^S is free for the sound mute
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
5dc62cdc5b
commit
af34c622b6
4 files changed
+8
-9
No files matched your search
@@ -486,7 +486,7 @@ def _setting_value(
|
||||
|
||||
|
||||
class _ConfigMenu(SelectScreen):
|
||||
"""The list of the editor, with the row of the pairing PIN concealed until ``^S`` shows it.
|
||||
"""The list of the editor, with the row of the pairing PIN concealed until ``^E`` shows it.
|
||||
|
||||
It does all that a grouped select list does. It also has the same toggle as the
|
||||
Device info page: the same chord, the same chip, and the same words. The two pages
|
||||
|
||||
@@ -30,7 +30,7 @@ from .tui.screen import ScrollScreen
|
||||
#: out with two different keys, depending on the page, the user would have one more thing
|
||||
#: to learn with no benefit. A chord also must be *intended*: a PIN never appears because a
|
||||
#: hand touched a letter.
|
||||
REVEAL_KEY = "^S"
|
||||
REVEAL_KEY = "^E"
|
||||
|
||||
|
||||
class DeviceInfoScreen(ScrollScreen):
|
||||
@@ -112,7 +112,7 @@ class DeviceInfoScreen(ScrollScreen):
|
||||
"""Toggle the PIN, or scroll or dismiss, as each result screen does.
|
||||
|
||||
The chord and the chip of the lane arrive as the same action. Thus the chip is not a
|
||||
second implementation of the key (``^S`` is bound one time, in the chord table of the
|
||||
second implementation of the key (``^E`` is bound one time, in the chord table of the
|
||||
session).
|
||||
"""
|
||||
if action == "reveal":
|
||||
|
||||
@@ -102,6 +102,9 @@ from .spinner import spinner_interval
|
||||
#: ``IXON``/``IXOFF``, so ^Q is not XON here.
|
||||
_CTRL_LETTER_CHORDS: dict[str, str] = {
|
||||
"c": "quit",
|
||||
# ^E shows or hides a concealed value, for example the pairing PIN (JP, 2026-11-20: it
|
||||
# was ^S, which the sound mute took). No terminal or multiplexer takes it in raw mode.
|
||||
"e": "reveal",
|
||||
# ^G logs in to the room that a room screen shows. In the input, ^G is not a special key:
|
||||
# it is the bell only in output, and no terminal or multiplexer takes it.
|
||||
"g": "login",
|
||||
@@ -121,10 +124,6 @@ _CTRL_LETTER_CHORDS: dict[str, str] = {
|
||||
"p": "paths",
|
||||
"q": "quit",
|
||||
"r": "retry",
|
||||
# ^S is the XOFF key. It is safe here for the same reason that ^Q is not XON (refer to
|
||||
# the text above): the raw mode clears IXON/IXOFF. Thus the terminal never takes it to
|
||||
# freeze the screen.
|
||||
"s": "reveal",
|
||||
"u": "url_code",
|
||||
"v": "paste_clipboard",
|
||||
"w": "to_menu",
|
||||
|
||||
@@ -1763,7 +1763,7 @@ def _device_info(cols: int, rows: int) -> Screen:
|
||||
|
||||
|
||||
def _device_info_revealed(cols: int, rows: int) -> Screen:
|
||||
# The same page after ^S: the widest state of the row that the other case masks.
|
||||
# The same page after ^E: the widest state of the row that the other case masks.
|
||||
screen = _device_info(cols, rows)
|
||||
screen.handle("reveal")
|
||||
return screen
|
||||
@@ -1780,7 +1780,7 @@ def _config_editor(cols: int, rows: int) -> Screen:
|
||||
|
||||
|
||||
def _config_editor_revealed(cols: int, rows: int) -> Screen:
|
||||
# The same list after ^S, where the PIN row is at its widest.
|
||||
# The same list after ^E, where the PIN row is at its widest.
|
||||
screen = _config_editor(cols, rows)
|
||||
screen.handle("reveal")
|
||||
return screen
|
||||
|
||||
Reference in new issue
Block a user