mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Switch the dark mode toggle to Ctrl+D
It was on D (as in uppercase D, or shift-d), but I feel this was going to be confusing given that there is still this slight mixup with the display of letters in the footer, and what was bound, etc. So... make it obvious what to press. Remember, 'd' can't be used because it's a movement key in this game.
This commit is contained in:
@@ -315,7 +315,7 @@ class FiveByFive(App[None]):
|
||||
SCREENS = {"help": Help()}
|
||||
|
||||
#: App-level bindings.
|
||||
BINDINGS = [("D", "toggle_dark", "Toggle Dark Mode")]
|
||||
BINDINGS = [("ctrl+d", "toggle_dark", "Toggle Dark Mode")]
|
||||
|
||||
def __init__(self) -> None:
|
||||
"""Constructor."""
|
||||
|
||||
Reference in New Issue
Block a user