From b1f67a7a3efb14a187d163ac0351a09dbba69cfd Mon Sep 17 00:00:00 2001 From: Emmanuel Bretelle Date: Tue, 24 Jun 2008 16:32:40 +0100 Subject: [PATCH] Fixes LP#242612 Terminal doesn't get focus on paste --- terminator | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/terminator b/terminator index bc444c44..6f7e5743 100755 --- a/terminator +++ b/terminator @@ -608,6 +608,12 @@ text/plain else: widget.show () + + def paste_clipboard(self): + self._vte.paste_clipboard() + self._vte.grab_focus() + + #keybindings for the individual splited terminals (affects only the #the selected terminal) def on_vte_key_press (self, term, event): @@ -657,7 +663,7 @@ text/plain self._vte.copy_clipboard () return (True) elif keyname == 'V': - self._vte.paste_clipboard () + self.paste_clipboard () return (True) elif keyname == 'S': self.do_scrollbar_toggle () @@ -767,7 +773,7 @@ text/plain menu.append (item) item = gtk.ImageMenuItem (gtk.STOCK_PASTE) - item.connect ("activate", lambda menu_item: self._vte.paste_clipboard ()) + item.connect ("activate", lambda menu_item: self.paste_clipboard ()) menu.append (item) item = gtk.MenuItem ()