Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
path: root/browser.py
diff options
authorManuel Kaufmann <humitos@gmail.com>2012-11-19 14:51:12 (GMT)
committer Simon Schampijer <simon@laptop.org>2012-11-19 20:45:36 (GMT)
commit9ac0a9e44f2b866cc4ec9a2fbac7c09c77ecb2f4 (patch)
treece847ebab3099461f2ce6bf26debae15df6c37c2 /browser.py
parentbcec5caa2fa3bc430fc46568606a2692214c6628 (diff)
Hanlde focus properly on each tab SL #4200
The focus is grabbed after loading the 'Home page' and when the session is restored. This patch allow us to show the OSK when it's needed and to be able to start typing with the hardware keyboard. Signed-off-by: Manuel Kaufmann <humitos@gmail.com> Acked-by: Simon Schampijer <simon@laptop.org>
Diffstat (limited to 'browser.py')
1 files changed, 1 insertions, 0 deletions
diff --git a/browser.py b/browser.py
index 39a304d..8af7a4a 100644
--- a/browser.py
+++ b/browser.py
@@ -303,6 +303,7 @@ class TabbedView(BrowserNotebook):
default_page = os.path.join(activity.get_bundle_path(),
browser.load_uri('file://' + default_page)
+ browser.grab_focus()
def _get_current_browser(self):
if self.get_n_pages():