[gnome-documents] embed: focus the preview as soon as the document is loaded



commit ee0c6aef10f41bb9921712f390eea39950690d1d
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 585317b..60e00f6 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]