chiark / gitweb /
js: Handle first shift selection of count correctly
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 13 Apr 2021 23:28:42 +0000 (00:28 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Tue, 13 Apr 2021 23:28:42 +0000 (00:28 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
templates/script.ts

index 685744a7d99d688c3da03b980b17297f4c189eca..ee78263f2c711bb10748045ea79acb7a84cb2315 100644 (file)
@@ -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