Restore Backspace and move tree filter to Ctrl+O

This commit is contained in:
Johannes Findeisen 2026-12-02 02:03:22 +01:00
commit 81483dee08
2 changed files with 2 additions and 2 deletions

View file

@ -177,7 +177,7 @@ MODE, TOPIC, and INVITE events are shown in the relevant window.
| `Ctrl+Up` / `Ctrl+Down` | scroll the channel tree by one row | | `Ctrl+Up` / `Ctrl+Down` | scroll the channel tree by one row |
| `ctrl-n` / `ctrl-p` | next / previous visible window (tree order, wraps around) | | `ctrl-n` / `ctrl-p` | next / previous visible window (tree order, wraps around) |
| Enter | with empty input, fold or unfold a server, or toggle a chat’s sticky status (`*` after its name) | | Enter | with empty input, fold or unfold a server, or toggle a chat’s sticky status (`*` after its name) |
| `Ctrl+H` | toggle hiding inactive channels and private chats with no unread messages. Active and sticky chats stay visible when their server is unfolded | | `Ctrl+O` | toggle hiding inactive channels and private chats with no unread messages. Active and sticky chats stay visible when their server is unfolded |
| `PageUp` / `PageDown` | scroll the current window | | `PageUp` / `PageDown` | scroll the current window |
| `ctrl-l` | clear the screen (history stays scrollable) | | `ctrl-l` | clear the screen (history stays scrollable) |
| `ctrl-t` | toggle copy view, which hides the tree, chat timestamps, and sender names | | `ctrl-t` | toggle copy view, which hides the tree, chat timestamps, and sender names |

2
irc9.c
View file

@ -2545,7 +2545,7 @@ static void handle_key(int c)
} }
if (c != '\t') comp_active = 0; if (c != '\t') comp_active = 0;
if (c == '\t') { complete_input(); return; } if (c == '\t') { complete_input(); return; }
if (c == 0x08) { /* ctrl-h */ if (c == 0x0f) { /* ctrl-o */
hide_read_windows = !hide_read_windows; hide_read_windows = !hide_read_windows;
position_tree(0, 1); position_tree(0, 1);
dirty = 1; dirty = 1;