[gnome-shell/wip/message-tray: 37/41] grabHelper: Fix some keyboard focus issues with the message tray
- From: Marina Zhurakhinskaya <marinaz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/message-tray: 37/41] grabHelper: Fix some keyboard focus issues with the message tray
- Date: Sat, 18 Aug 2012 17:21:20 +0000 (UTC)
commit 6c9f6df03f12bc319311766f71b5f220db1f790d
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Thu Aug 16 13:40:51 2012 -0400
grabHelper: Fix some keyboard focus issues with the message tray
This will need to be revisited.
js/ui/grabHelper.js | 10 ++--------
1 files changed, 2 insertions(+), 8 deletions(-)
---
diff --git a/js/ui/grabHelper.js b/js/ui/grabHelper.js
index 6cb1007..a330c04 100644
--- a/js/ui/grabHelper.js
+++ b/js/ui/grabHelper.js
@@ -140,7 +140,7 @@ const GrabHelper = new Lang.Class({
let focus = global.stage.key_focus;
let hadFocus = focus && this._isWithinGrabbedActor(focus);
- let newFocus = hadFocus : focus ? params.actor;
+ let newFocus = params.actor;
if (this.isActorGrabbed(params.actor))
return;
@@ -149,7 +149,6 @@ const GrabHelper = new Lang.Class({
this._fullGrab(hadFocus, params.modal, params.grabFocus);
params.savedFocus = focus;
- params.newFocus = newFocus;
this._grabStack.push(params);
if (params.modal)
@@ -219,12 +218,6 @@ const GrabHelper = new Lang.Class({
let focus = global.stage.key_focus;
let hadFocus = focus && this._isWithinGrabbedActor(focus);
- let newFocus = poppedGrab.savedFocus;
- if (!newFocus)
- newFocus = poppedGrab.newFocus;
-
- _navigateActor(newFocus, hadFocus);
-
if (poppedGrab.onUngrab)
poppedGrab.onUngrab();
@@ -235,6 +228,7 @@ const GrabHelper = new Lang.Class({
if (modal)
this._modalCount--;
+ _navigateActor(poppedGrab.savedFocus, hadFocus);
},
_fullUngrab: function() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]