Skip to content

Commit

Permalink
Change content warning shortcut to ^W
Browse files Browse the repository at this point in the history
^S will freeze most terminals
  • Loading branch information
ihabunek committed Apr 16, 2019
1 parent 747c5a6 commit 9281045
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions toot/ui/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -452,12 +452,12 @@ def loop(self):

class ComposeModal(EntryModal):
def __init__(self, stdscr, default_cw=None):
super().__init__(stdscr, title="Compose a toot", footer="^D to submit, ESC to quit, ^S to mark sensitive (cw)")
super().__init__(stdscr, title="Compose a toot", footer="^D to submit, ESC to quit, ^W to mark sensitive (cw)")
self.cw = default_cw
self.cwmodal = EntryModal(stdscr, title="Content warning", size=(1, 60), default=self.cw)

def do_command(self, ch):
if ch == curses.ascii.ctrl(ord('s')):
if ch == curses.ascii.ctrl(ord('w')):
self.cw = self.cwmodal.loop() or None
self.draw()
return True, False
Expand Down

0 comments on commit 9281045

Please sign in to comment.