From 901cbb881423d8b88d8be9326eeceebd90ce4c12 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Tue, 14 Jul 2015 14:11:06 +0200 Subject: [PATCH] remove the Ctrl-F -> send file shortcut in one window mode. Fixes #7831 --- src/message_window.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/message_window.py b/src/message_window.py index 8df424f34..ed3200e77 100644 --- a/src/message_window.py +++ b/src/message_window.py @@ -368,6 +368,10 @@ class MessageWindow(object): # theme if not Gtk.Settings.get_default().get_property( 'gtk-key-theme-name') == 'Emacs': + if gajim.interface.msg_win_mgr.mode == \ + gajim.interface.msg_win_mgr.ONE_MSG_WINDOW_ALWAYS_WITH_ROSTER: + gajim.interface.roster.tree.grab_focus() + return False control._on_send_file_menuitem_activate(None) return True elif control.type_id == message_control.TYPE_CHAT and \