[Bugs] #4187 Browse NORM: Focus of url entry stays when closing a tab

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Tue Nov 13 15:05:06 EST 2012


#4187: Focus of url entry stays when closing a tab
----------------------------+-----------------------------------------------
    Reporter:  erikos       |          Owner:  humitos 
        Type:  defect       |         Status:  assigned
    Priority:  Normal       |      Milestone:  0.98    
   Component:  Browse       |        Version:  0.97.x  
    Severity:  Major        |       Keywords:  r?      
Distribution:  Unspecified  |   Status_field:  Assigned
----------------------------+-----------------------------------------------
Changes (by humitos):

  * keywords:  => r?


Comment:

 I'm attaching a patch that every time a tab is closed the focus is grabbed
 by WebKit.WebView of the tab that will be shown.

 With this patch you won't be placed on the URL entry after closing a tab
 and you will be taken to the input field inside the WebView if you were on
 it at the moment of switching to another tab.

 The only test that I couldn't fix is this one:

  1. Open Browse
  1. Go to Google
  1. Focus goes to the search input inside the WebKit.WebView
  1. Tap on the URL entry
  1. Add a new tab with add-tab button
  1. Focus goes to the URL entry
  1. Close the new tab
  1. Focus goes to the search input inside the WebKit.WebView

 I would like that in this case the focus were in the WebKit.WebView but
 not in the search input because I've already quit from that input when I
 tap on the URL entry (step 4)

 NOTE: this patch doesn't fix the issue related with the startup page (that
 case is out of the question) #4200

-- 
Ticket URL: <http://bugs.sugarlabs.org/ticket/4187#comment:3>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list