Skip to content

Commit

Permalink
fix: ignore shift gesture event
Browse files Browse the repository at this point in the history
  • Loading branch information
nik012003 committed Sep 6, 2023
1 parent 1ab6959 commit 87f2412
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/list_view.rs
Expand Up @@ -87,7 +87,8 @@ fn create_gesture_click(row: &CenterBox) -> gtk::GestureClick {
let click = gtk::GestureClick::new();
click.connect_released(clone!(@weak row => move |me, _, _, _|{
// Ignore the click when CTRL is being hold
if me.current_event_state().contains(gdk::ModifierType::CONTROL_MASK) {
if me.current_event_state().contains(gdk::ModifierType::CONTROL_MASK) ||
me.current_event_state().contains(gdk::ModifierType::SHIFT_MASK) {
return;
}
let file = get_file(&row);
Expand Down

0 comments on commit 87f2412

Please sign in to comment.