mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-12 04:27:51 -05:00
selection: allow selection when mouse tracking is enabled *if* shift is pressed
This commit is contained in:
parent
2a8962fd1a
commit
28a8b18c5e
1 changed files with 1 additions and 2 deletions
|
|
@ -20,8 +20,7 @@
|
|||
static bool
|
||||
selection_enabled(const struct terminal *term)
|
||||
{
|
||||
return (term->mouse_tracking != MOUSE_DRAG &&
|
||||
term->mouse_tracking != MOUSE_MOTION);
|
||||
return term->mouse_tracking == MOUSE_NONE || term->kbd.shift;
|
||||
}
|
||||
|
||||
bool
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue