[gnome-documents/gnome-3-2] embed: focus the preview as soon as the document is loaded
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents/gnome-3-2] embed: focus the preview as soon as the document is loaded
- Date: Tue, 25 Oct 2011 20:32:22 +0000 (UTC)
commit abdcf242de1b0fcd90c293295d07e9ebf806fa17
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Tue Oct 25 16:31:32 2011 -0400
embed: focus the preview as soon as the document is loaded
This fixes keynav not working initially when switching to a document
preview.
src/embed.js | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/embed.js b/src/embed.js
index 09669b5..d58f866 100644
--- a/src/embed.js
+++ b/src/embed.js
@@ -200,6 +200,7 @@ ViewEmbed.prototype = {
this._destroyScrollChild();
this._scrolledWin.add(this._preview.widget);
+ this._preview.widget.grab_focus();
},
_fullscreenMotionHandler: function(widget, event) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]