File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ impl App {
172172 flags. insert ( NeedsUpdate :: COMMANDS ) ;
173173 } else if let Event :: Key ( k) = ev {
174174 let new_flags = match k {
175- keys:: EXIT_1 | keys :: EXIT_2 => {
175+ keys:: EXIT => {
176176 self . do_quit = true ;
177177 NeedsUpdate :: empty ( )
178178 }
Original file line number Diff line number Diff line change @@ -19,9 +19,9 @@ pub const FOCUS_WORKDIR: KeyEvent = no_mod(KeyCode::Char('1'));
1919pub const FOCUS_STAGE : KeyEvent = no_mod ( KeyCode :: Char ( '2' ) ) ;
2020pub const FOCUS_RIGHT : KeyEvent = no_mod ( KeyCode :: Right ) ;
2121pub const FOCUS_LEFT : KeyEvent = no_mod ( KeyCode :: Left ) ;
22- pub const EXIT_1 : KeyEvent = no_mod ( KeyCode :: Esc ) ;
22+ pub const EXIT : KeyEvent =
23+ with_mod ( KeyCode :: Char ( 'c' ) , KeyModifiers :: CONTROL ) ;
2324pub const EXIT_POPUP : KeyEvent = no_mod ( KeyCode :: Esc ) ;
24- pub const EXIT_2 : KeyEvent = no_mod ( KeyCode :: Char ( 'q' ) ) ;
2525pub const CLOSE_MSG : KeyEvent = no_mod ( KeyCode :: Enter ) ;
2626pub const OPEN_COMMIT : KeyEvent = no_mod ( KeyCode :: Char ( 'c' ) ) ;
2727pub const OPEN_HELP : KeyEvent = no_mod ( KeyCode :: Char ( 'h' ) ) ;
Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ pub mod commands {
136136 ) ;
137137 ///
138138 pub static QUIT : CommandText = CommandText :: new (
139- "Quit [esc,q ]" ,
139+ "Quit [ctrl+c ]" ,
140140 "quit gitui application" ,
141141 CMD_GROUP_GENERAL ,
142142 ) ;
You can’t perform that action at this time.
0 commit comments