v2.4: decouple highlight-mode toggle + settings persistence + Cmd+click on Mac

Squashed port of the v2.4.0..v2.4.6 iteration on hypercypher production. The history-table
highlight semantics no longer follow the Cross/Same query match mode — a new ▼ toggle next
to the highlight box (styled like the ⚡ auto-match button, dim/lit on/off) controls them
independently. Cross/Same checkboxes now affect only the query/modal + export (as the names
suggest). optHltSameCipher and autoMatchEnabled both round-trip through localStorage now via
calcOptionsArr. Cmd+click on macOS now works as Ctrl+click does on Win/Linux (toggle a
history value into the highlight box) — macOS routes Ctrl+click to contextmenu so the
existing gesture was unreachable for Mac.

Pure client-side; no db change (v2.3 db.json + db_lite.json Release assets still valid).
Files: calc/calc.js, calc/highlighter.js, calc/init-variables.js, calc/styles.css, index.html.
Cache-bust calc v13 / highlighter v3 / init-variables v7 / styles v9.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
malonehunterandClaude Opus 4.7 committed 2026-05-30 07:46:08 -04:00
1 parent 202fe8ed04
commit 4eb10f2bdb
6 files changed
+103 -14

No files matched your search

+17
View File
@@ -1034,6 +1034,21 @@ body {
#autoMatchBtn.matchOff {
opacity: 0.35;
}
#hltModeBtn {
background-color: var(--input-bg-accent);
padding: 0em;
margin: 0em 0em 0em 0.3em;
min-width: 32px;
max-width: 32px;
color: hsl(148, 65%, 58%);
font-size: 110%;
line-height: 1;
text-align: center;
vertical-align: middle;
}
#hltModeBtn.hltModeOff {
opacity: 0.35;
}
#calcNotification {
position: absolute;
left: 50%;
@@ -1056,6 +1071,7 @@ body {
#queryDBbtn:hover,
#enterPhraseBtn:hover,
#autoMatchBtn:hover,
#hltModeBtn:hover,
.queryPageBtn:hover {
background-color: var(--btn-hover-accent);
}
@@ -1067,6 +1083,7 @@ body {
#queryDBbtn:active,
#enterPhraseBtn:active,
#autoMatchBtn:active,
#hltModeBtn:active,
.queryPageBtn:active {
background-color: var(--btn-active-accent);
}