mirror of
https://github.com/ClementTsang/bottom.git
synced 2025-07-26 23:24:20 +02:00
deps: switch back to crossterm 0.26.1 with fix to double keypress (#1068)
This commit is contained in:
parent
8fe3f1f23c
commit
ac0bf7ca96
@ -40,7 +40,7 @@ use constants::*;
|
|||||||
use crossterm::{
|
use crossterm::{
|
||||||
event::{
|
event::{
|
||||||
poll, read, DisableBracketedPaste, DisableMouseCapture, Event, KeyCode, KeyEvent,
|
poll, read, DisableBracketedPaste, DisableMouseCapture, Event, KeyCode, KeyEvent,
|
||||||
KeyModifiers, MouseEvent, MouseEventKind,
|
KeyEventKind, KeyModifiers, MouseEvent, MouseEventKind,
|
||||||
},
|
},
|
||||||
execute,
|
execute,
|
||||||
style::Print,
|
style::Print,
|
||||||
@ -444,7 +444,9 @@ pub fn create_input_thread(
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Event::Key(key) => {
|
Event::Key(key) if key.kind == KeyEventKind::Press => {
|
||||||
|
// For now, we only care about keydown events. This may change in the future.
|
||||||
|
|
||||||
if sender.send(BottomEvent::KeyInput(key)).is_err() {
|
if sender.send(BottomEvent::KeyInput(key)).is_err() {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user