mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-31 07:11:09 -04: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
|
static bool
|
||||||
selection_enabled(const struct terminal *term)
|
selection_enabled(const struct terminal *term)
|
||||||
{
|
{
|
||||||
return (term->mouse_tracking != MOUSE_DRAG &&
|
return term->mouse_tracking == MOUSE_NONE || term->kbd.shift;
|
||||||
term->mouse_tracking != MOUSE_MOTION);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue