[gnome-shell] GrabHelper: always navigate focus when grabbing
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] GrabHelper: always navigate focus when grabbing
- Date: Thu, 6 Sep 2012 13:20:25 +0000 (UTC)
commit 5a259dd6b0e51c8185f814545bbd9e75432de739
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Wed Sep 5 23:10:41 2012 +0200
GrabHelper: always navigate focus when grabbing
Users of GrabHelper.grab() espect that the actor parameter (or one of its
children) will receive focus, irrespective of the previous focus location.
This fixes the key focus on the chat entry when expanding the notification.
https://bugzilla.gnome.org/show_bug.cgi?id=683449
js/ui/grabHelper.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/grabHelper.js b/js/ui/grabHelper.js
index a4392cc..7120043 100644
--- a/js/ui/grabHelper.js
+++ b/js/ui/grabHelper.js
@@ -170,7 +170,7 @@ const GrabHelper = new Lang.Class({
if (params.grabFocus)
this._grabFocusCount++;
- if (hadFocus)
+ if (hadFocus || params.grabFocus)
_navigateActor(newFocus);
return true;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]