mirror of
https://github.com/gitui-org/gitui
synced 2026-05-23 17:08:21 +00:00
only quit gitui on Ctrl+c from now on
This commit is contained in:
parent
d332e7e586
commit
ec6180af51
3 changed files with 4 additions and 4 deletions
|
|
@ -172,7 +172,7 @@ impl App {
|
|||
flags.insert(NeedsUpdate::COMMANDS);
|
||||
} else if let Event::Key(k) = ev {
|
||||
let new_flags = match k {
|
||||
keys::EXIT_1 | keys::EXIT_2 => {
|
||||
keys::EXIT => {
|
||||
self.do_quit = true;
|
||||
NeedsUpdate::empty()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,9 +19,9 @@ pub const FOCUS_WORKDIR: KeyEvent = no_mod(KeyCode::Char('1'));
|
|||
pub const FOCUS_STAGE: KeyEvent = no_mod(KeyCode::Char('2'));
|
||||
pub const FOCUS_RIGHT: KeyEvent = no_mod(KeyCode::Right);
|
||||
pub const FOCUS_LEFT: KeyEvent = no_mod(KeyCode::Left);
|
||||
pub const EXIT_1: KeyEvent = no_mod(KeyCode::Esc);
|
||||
pub const EXIT: KeyEvent =
|
||||
with_mod(KeyCode::Char('c'), KeyModifiers::CONTROL);
|
||||
pub const EXIT_POPUP: KeyEvent = no_mod(KeyCode::Esc);
|
||||
pub const EXIT_2: KeyEvent = no_mod(KeyCode::Char('q'));
|
||||
pub const CLOSE_MSG: KeyEvent = no_mod(KeyCode::Enter);
|
||||
pub const OPEN_COMMIT: KeyEvent = no_mod(KeyCode::Char('c'));
|
||||
pub const OPEN_HELP: KeyEvent = no_mod(KeyCode::Char('h'));
|
||||
|
|
|
|||
|
|
@ -136,7 +136,7 @@ pub mod commands {
|
|||
);
|
||||
///
|
||||
pub static QUIT: CommandText = CommandText::new(
|
||||
"Quit [esc,q]",
|
||||
"Quit [ctrl+c]",
|
||||
"quit gitui application",
|
||||
CMD_GROUP_GENERAL,
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue