#7277 NORM 8.2.0 (: Browse should focus the location bar when launched
Zarro Boogs per Child
bugtracker at laptop.org
Fri Jul 11 12:53:56 EDT 2008
#7277: Browse should focus the location bar when launched
-------------------------------+--------------------------------------------
Reporter: Eben | Owner: erikos
Type: defect | Status: new
Priority: normal | Milestone: 8.2.0 (was Update.2)
Component: browse-activity | Version: Development build as of this date
Resolution: | Keywords: 8.2.0:? r?
Next_action: code | Verified: 0
Blockedby: | Blocking:
-------------------------------+--------------------------------------------
Changes (by Eben):
* keywords: => 8.2.0:? r?
* next_action: => code
Comment:
The attached patch was sent to the mailing list, but slipped through
around code freeze when everything required a ticket. Here's the
description from that email:
I've tested this successfully while loading as a homepage:
1. A valid URL
2. An invalid URL
3. A local file path
It works in all cases, without race conditions. The race condition it
beats is one which causes the focus_in event to come after the text has
been set/selected, since the event handler sets the text to the address
upon focus, which (apparently) de-selects the text. A very curious fact
is that it appears the key handler for focusing the location bar (CTRL-L)
simply calls grab_focus on the entry and nothing else, which results in
the text being selected. This is a mystery to me, so I'd appreciate it if
someone could shed light on the difference. Perhaps the reason that this
special select_text mumbo jumbo is needed isn't what I thought it
was...either way, it seems to be necessary.
--
Ticket URL: <http://dev.laptop.org/ticket/7277#comment:1>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system
More information about the Bugs
mailing list