From 71a702f375750829c634b552217c9925d549828b Mon Sep 17 00:00:00 2001 From: Anders Betts Date: Wed, 23 Sep 2026 10:58:17 +0200 Subject: tui: context menu on → / ^O; no F-keys, ^N or ^Enter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit → (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 --- docs/DECISIONS.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'docs/DECISIONS.md') 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`, -- cgit v1.3