From a3c8b6246b30b26b01526c978602346dd9ba605a Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Thu, 21 May 2026 03:34:20 +0200 Subject: [PATCH] Close/leave room with ctrl-w --- nomadnet/ui/textui/Channels.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nomadnet/ui/textui/Channels.py b/nomadnet/ui/textui/Channels.py index e7f076c..94f244f 100644 --- a/nomadnet/ui/textui/Channels.py +++ b/nomadnet/ui/textui/Channels.py @@ -187,7 +187,7 @@ class ChannelsListShortcuts(): class ChannelsRoomShortcuts(): def __init__(self, app): self.app = app - self.widget = urwid.AttrMap(urwid.Text("[C-d] Send [C-l] Leave [C-k] Clear [C-u] Users [C-y] Channels [F8] Collapse Joins [Tab] Focus"), "shortcutbar") + self.widget = urwid.AttrMap(urwid.Text("[C-d] Send [C-w] Leave [C-k] Clear [C-u] Users [C-y] Channels [F8] Collapse Joins [Tab] Focus"), "shortcutbar") class ChannelsDialogLineBox(urwid.LineBox): @@ -386,7 +386,7 @@ class RoomMessageEdit(urwid.Edit): self.delegate.send_message() elif key == "ctrl k": self.set_edit_text("") - elif key == "ctrl l": + elif key == "ctrl w": self.delegate.leave_room() elif key == "ctrl u": self.delegate.toggle_users()