File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -120,8 +120,12 @@ pub fn monitor(mut serial: Box<dyn SerialPort>) -> serialport::Result<()> {
120
120
if let Event :: Key ( key) = read ( ) ? {
121
121
if key. modifiers . contains ( KeyModifiers :: CONTROL ) {
122
122
match key. code {
123
- KeyCode :: Char ( 'c' ) => break ,
124
- KeyCode :: Char ( 'r' ) => {
123
+ // NOTE: Both the lower- and upper-case variants shouldn't
124
+ // need to be matched normally, but there is a bug in
125
+ // crossterm 0.23 which requires this fix. See:
126
+ // https://github.com/crossterm-rs/crossterm/pull/629
127
+ KeyCode :: Char ( 'c' ) | KeyCode :: Char ( 'C' ) => break ,
128
+ KeyCode :: Char ( 'r' ) | KeyCode :: Char ( 'R' ) => {
125
129
serial. write_data_terminal_ready ( false ) ?;
126
130
serial. write_request_to_send ( true ) ?;
127
131
You can’t perform that action at this time.
0 commit comments