[gnome-shell] shellEntry: Make the entry have a fake focus state when a context menu is open
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] shellEntry: Make the entry have a fake focus state when a context menu is open
- Date: Wed, 12 Sep 2012 17:15:53 +0000 (UTC)
commit 22266899dc45378d5bb6390c5c5b5bf40d8566b7
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Thu Sep 6 16:35:54 2012 -0300
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 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/shellEntry.js b/js/ui/shellEntry.js
index b82bc46..18fe7d1 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() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]