Skip to content

Commit

Permalink
Remove quit action.
Browse files Browse the repository at this point in the history
Increments-patch-version-of: ttyr-tty
  • Loading branch information
dajofrey committed Jan 25, 2024
1 parent 655bfa4 commit 83cb8fb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion src/lib/ttyr-tty/Common/Macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

#define TTYR_TTY_TILING_KEY CTRL_KEY('t')
#define TTYR_TTY_TOPBAR_KEY CTRL_KEY('e')
#define TTYR_TTY_QUIT_KEY CTRL_KEY('q')
#define TTYR_TTY_INSERT_TILE_LEFT_KEY 'a'
#define TTYR_TTY_INSERT_TILE_RIGHT_KEY 'd'
#define TTYR_TTY_INSERT_TILE_TOP_KEY 'w'
Expand Down
6 changes: 1 addition & 5 deletions src/lib/ttyr-tty/TTY/Macro.c
Original file line number Diff line number Diff line change
Expand Up @@ -351,11 +351,7 @@ static TTYR_TTY_RESULT ttyr_tty_handleKeyboardInput(
if (New_p) {return TTYR_TTY_SUCCESS;}
}

if (TTYR_TTY_QUIT_KEY == Event.Keyboard.codepoint && Event.Keyboard.trigger == NH_WSI_TRIGGER_PRESS) {
TTYR_TTY_MICRO_TAB(MacroTab_p)->Tile_p->close = NH_TRUE;
Window_p->Tile_p->refresh = NH_TRUE;
}
else if (TTYR_TTY_TOPBAR_KEY == Event.Keyboard.codepoint && Event.Keyboard.trigger == NH_WSI_TRIGGER_PRESS) {
if (TTYR_TTY_TOPBAR_KEY == Event.Keyboard.codepoint && Event.Keyboard.trigger == NH_WSI_TRIGGER_PRESS) {
ttyr_tty_toggleTopbar(&MacroTab_p->Topbar);
Window_p->Tile_p->refresh = NH_TRUE;
}
Expand Down

0 comments on commit 83cb8fb

Please sign in to comment.