binds: allow typing ? in subject header

Since commit 5c8a749cfa ("binds: display active keybinds in a dialog
box") the ? key is bound to `:help keys` in the global section which
applies to all binding contexts. Pressing ? while editing any email
headers in the compose window (when the editor is not selected) displays
the active bindings menu.

Add $noinherit=true in the [compose] context to allow typing any
character. Copy the bindings for next-tab and prev-tab so that users can
still change tabs while editing headers.

Cc: Akspecs <akspecs@gmail.com>
Signed-off-by: Robin Jarry <robin@jarry.cc>
This commit is contained in:
Robin Jarry 2022-09-16 08:51:52 +02:00
parent d371c1ac8d
commit e808b96d63

View file

@ -90,10 +90,13 @@ $ex = <C-x>
[compose] [compose]
# Keybindings used when the embedded terminal is not selected in the compose # Keybindings used when the embedded terminal is not selected in the compose
# view # view
$noinherit = true
$ex = <C-x> $ex = <C-x>
<C-k> = :prev-field<Enter> <C-k> = :prev-field<Enter>
<C-j> = :next-field<Enter> <C-j> = :next-field<Enter>
<tab> = :next-field<Enter> <tab> = :next-field<Enter>
<C-p> = :prev-tab<Enter>
<C-n> = :next-tab<Enter>
[compose::editor] [compose::editor]
# Keybindings used when the embedded terminal is selected in the compose view # Keybindings used when the embedded terminal is selected in the compose view