[Bugs] #1434 Browse UNSP: Pressing Esc does not stop page load

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Wed Sep 19 08:20:05 EDT 2012


#1434: Pressing Esc does not stop page load
------------------------------------------+---------------------------------
    Reporter:  benzea                     |          Owner:  humitos    
        Type:  defect                     |         Status:  accepted   
    Priority:  Unspecified by Maintainer  |      Milestone:  0.98       
   Component:  Browse                     |        Version:  Unspecified
    Severity:  Unspecified                |       Keywords:  patch      
Distribution:  Unspecified                |   Status_field:  Unconfirmed
------------------------------------------+---------------------------------

Comment(by humitos):

 Replying to [comment:4 garycmartin]:
 > Something like 1) if in fullscreen mode and a page is not loading, exit
 fullscreen mode; 2) if in fullscreen mode and a page is loading, stop
 loading -- this is how Safari handles the esc case.

 Well, this is not so easy to do because in that case we have to modify the
 Activity class to handle this situation. In fact, I think it's not a good
 idea to modify the Activity class just for this special situation. Maybe
 we can think in something more general like defining a "state" (boolean)
 variable to add in the if clause.

 At the moment, Sugar's Activity class take priority over the "key-press"
 event (sugar3/graphics/window.py L250). So, if we are loading a web page
 in fullscreen and we press Esc, we will be "unfullscreen" and the web page
 will keep loading.

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


More information about the Bugs mailing list