Commit 0fcd1807 authored by Christian Fibich's avatar Christian Fibich Committed by Stefan Tauner
Browse files

vecs/fiji#59: Allow net (de)selection via double click

parent d1ab61f5
......@@ -189,7 +189,10 @@ sub _populate_widget {
$self->{'select_button'}->configure(-state=>'disabled') if (!$self->{'select_multiple'});
$self->{'selected'} = 1;
});
$self->{'found_listbox'}->bind('<Double-Button-1>',sub {
$self->{'found_listbox'}->focus;
$self->{'select_button'}->invoke;}
);
$self->{'found_listbox'}->bind('<Return>',sub {$self->{'select_button'}->invoke} );
# if the unselect button is pressed
......@@ -222,6 +225,12 @@ sub _populate_widget {
}
});
# Bind with double click
$self->{'selected_listbox'}->bind('<Return>',sub {$self->{'unselect_button'}->invoke} );
$self->{'selected_listbox'}->bind('<Double-Button-1>',sub {
$self->{'found_listbox'}->focus;
$self->{'unselect_button'}->invoke;}
);
# place widgets
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment