mirror of
https://github.com/1j01/textual-paint.git
synced 2024-10-27 09:50:51 +03:00
Toggle dark mode with Ctrl+D
This commit is contained in:
parent
8369b4e303
commit
4fa7784651
4
paint.py
4
paint.py
@ -694,8 +694,8 @@ class PaintApp(App):
|
||||
# Ctrl+Shift+Z doesn't seem to work on Ubuntu or VS Code terminal
|
||||
elif key == "ctrl+shift+z" or key == "shift+ctrl+z" or key == "ctrl+y" or key == "f4":
|
||||
self.redo()
|
||||
# elif key == "ctrl+d":
|
||||
# self.action_toggle_dark()
|
||||
elif key == "ctrl+d":
|
||||
self.action_toggle_dark()
|
||||
|
||||
def on_button_pressed(self, event: Button.Pressed) -> None:
|
||||
"""Called when a button is clicked or activated with the keyboard."""
|
||||
|
Loading…
Reference in New Issue
Block a user