Skip to content

Commit

Permalink
fix unused import KeyModifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
ShoheiKamiya authored and ShoheiKamiya committed Jan 25, 2025
1 parent c1c2848 commit 9d8dcde
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/usecase/tui/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ impl Model<'_> {
KeyCode::Tab => Some(Message::MoveToNextPane),
KeyCode::Esc => Some(Message::Quit),
_ => {
let is_ctrl_pressed = key.modifiers.contains(crossterm::event::KeyModifiers::CONTROL);

let is_ctrl_pressed = key.modifiers.contains(KeyModifiers::CONTROL);
match s.current_pane {
CurrentPane::Main => {
match (key.code, is_ctrl_pressed) {
Expand Down

0 comments on commit 9d8dcde

Please sign in to comment.