summaryrefslogtreecommitdiff
path: root/docs/DECISIONS.md
diff options
context:
space:
mode:
authorAnders Betts <anders.betts@gmail.com>2026-09-23 10:58:17 +0200
committerAnders Betts <anders.betts@gmail.com>2026-09-23 10:58:17 +0200
commit71a702f375750829c634b552217c9925d549828b (patch)
tree2b963da1d0110ed43920722ba4193ee9c79f2521 /docs/DECISIONS.md
parent8ccb6d58d8e2f1c65dfd7ab5f0eb7d93f1f19def (diff)
downloadbokf-71a702f375750829c634b552217c9925d549828b.tar.gz
bokf-71a702f375750829c634b552217c9925d549828b.zip
tui: context menu on → / ^O; no F-keys, ^N or ^Enter
→ (where no caret uses it) and ^O (everywhere, also in table cells) open "Åtgärder": a box at the right edge with every action of the view and its key. Screens declare their actions with tui_set_actions(); choosing one feeds its key to the widget, so the menu and accelerators share one path. Function keys, Ctrl+N (now n), Ctrl+Enter and Ctrl+F are gone and no extended keyboard protocol is enabled, so the TUI works in a browser terminal; save/post/validate/preview/template/attach are menu actions. make check rejects F-keys, ^N and ^Enter in clients/. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'docs/DECISIONS.md')
-rw-r--r--docs/DECISIONS.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/docs/DECISIONS.md b/docs/DECISIONS.md
index 5499610..c18f49b 100644
--- a/docs/DECISIONS.md
+++ b/docs/DECISIONS.md
@@ -261,6 +261,20 @@ kept verbatim from the STATE.md they were pruned from (2026-09-21).
row, the `F2` menu, delete from list and editor); the other screens
follow.
+29. **Context menu and web-safe keys (2026-09-23)**: `→` opens a context
+ menu ("Åtgärder") where no caret uses the arrow, `^O` everywhere
+ (also in table cells); it is a box at the right edge listing every
+ action with its key, so it doubles as the hotkey list. Choosing an
+ action feeds its key to the widget, so the menu and the accelerator
+ share one path. All function keys are removed (F2 menu, F4 mall, F5
+ refresh/validate/preview, F7, F9 save/post) and so are `Ctrl+N` (now
+ `n`), `Ctrl+Enter` and `Ctrl+F`; the extended keyboard protocols are no
+ longer enabled. Reason: the TUI is to be served in a browser terminal
+ for users outside the home network (the owner and Petter first, others
+ later), and browsers own the F-keys and `Ctrl+N`/`T`/`W`. Supersedes
+ the key parts of #11 and #28; `make check` rejects F-keys, `^N` and
+ `^Enter` in `clients/`.
+
## Completed work formerly listed under "Pending decisions"
- Attachments are complete: download (voucher detail `f`, Underlag `Enter`,