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 {
172
172
flags. insert ( NeedsUpdate :: COMMANDS ) ;
173
173
} else if let Event :: Key ( k) = ev {
174
174
let new_flags = match k {
175
- keys:: EXIT_1 | keys :: EXIT_2 => {
175
+ keys:: EXIT => {
176
176
self . do_quit = true ;
177
177
NeedsUpdate :: empty ( )
178
178
}
Original file line number Diff line number Diff line change @@ -19,9 +19,9 @@ pub const FOCUS_WORKDIR: KeyEvent = no_mod(KeyCode::Char('1'));
19
19
pub const FOCUS_STAGE : KeyEvent = no_mod ( KeyCode :: Char ( '2' ) ) ;
20
20
pub const FOCUS_RIGHT : KeyEvent = no_mod ( KeyCode :: Right ) ;
21
21
pub 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 ) ;
23
24
pub const EXIT_POPUP : KeyEvent = no_mod ( KeyCode :: Esc ) ;
24
- pub const EXIT_2 : KeyEvent = no_mod ( KeyCode :: Char ( 'q' ) ) ;
25
25
pub const CLOSE_MSG : KeyEvent = no_mod ( KeyCode :: Enter ) ;
26
26
pub const OPEN_COMMIT : KeyEvent = no_mod ( KeyCode :: Char ( 'c' ) ) ;
27
27
pub 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 {
136
136
) ;
137
137
///
138
138
pub static QUIT : CommandText = CommandText :: new (
139
- "Quit [esc,q ]" ,
139
+ "Quit [ctrl+c ]" ,
140
140
"quit gitui application" ,
141
141
CMD_GROUP_GENERAL ,
142
142
) ;
You can’t perform that action at this time.
0 commit comments