From 22266899dc45378d5bb6390c5c5b5bf40d8566b7 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Thu, 6 Sep 2012 16:35:54 -0300 Subject: [PATCH] shellEntry: Make the entry have a fake focus state when a context menu is open This means that right-clicking on an entry shouldn't visibly change the theme, which is unexpected. Make sure that closing the menu refocused the entry, too. https://bugzilla.gnome.org/show_bug.cgi?id=683509 --- js/ui/shellEntry.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/js/ui/shellEntry.js b/js/ui/shellEntry.js index b82bc46e4..18fe7d199 100644 --- a/js/ui/shellEntry.js +++ b/js/ui/shellEntry.js @@ -76,6 +76,12 @@ const EntryMenu = new Lang.Class({ this.actor.grab_key_focus(); this.parent(); + this._entry.add_style_pseudo_class('focus'); + }, + + close: function() { + this._entry.grab_key_focus(); + this.parent(); }, _updateCopyItem: function() {