Skip to content

Commit acf20b2

Browse files
committed
Shift-drag copy shouldn't close form.
1 parent 543fa53 commit acf20b2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lute/static/js/lute.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,7 @@ let selection_start_shift_held = false;
370370
let clear_newmultiterm_elements = function() {
371371
$('.newmultiterm').removeClass('newmultiterm');
372372
selection_start_el = null;
373+
selection_start_shift_held = false;
373374
}
374375

375376
function handle_select_started(e) {
@@ -425,7 +426,7 @@ function select_ended(el, e) {
425426
const selected = get_selected_in_range(selection_start_el, el);
426427
if (selection_start_shift_held) {
427428
copy_text_to_clipboard(selected.toArray());
428-
start_hover_mode();
429+
clear_newmultiterm_elements();
429430
return;
430431
}
431432

0 commit comments

Comments
 (0)