From: Ian Jackson Date: Tue, 13 Apr 2021 23:28:42 +0000 (+0100) Subject: js: Handle first shift selection of count correctly X-Git-Tag: otter-0.5.0~85 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=8cd7fd38d4709f96f2dee38a2ff90137a41380b2;p=otter.git js: Handle first shift selection of count correctly Signed-off-by: Ian Jackson --- diff --git a/templates/script.ts b/templates/script.ts index 685744a7..ee78263f 100644 --- a/templates/script.ts +++ b/templates/script.ts @@ -920,7 +920,8 @@ function mouse_find_predicate( if (i == 0) { held = p.held; if (held == us && !allow_for_deselect) held = null; - } else if (held == us) { + } + if (held == us) { // user is going to be deselecting if (p.held != us) { // skip ones we don't have