#4591 NORM Never A: Shortcut for "Keep"

Zarro Boogs per Child bugtracker at laptop.org
Fri Nov 2 04:57:15 EDT 2007


#4591: Shortcut for "Keep"
--------------------------+-------------------------------------------------
  Reporter:  Eben         |       Owner:  rwh           
      Type:  enhancement  |      Status:  new           
  Priority:  normal       |   Milestone:  Never Assigned
 Component:  sugar        |     Version:                
Resolution:               |    Keywords:                
  Verified:  0            |  
--------------------------+-------------------------------------------------

Comment(by tomeu):

 Replying to [comment:3 rwh]:
 > I propose this solution (analogous to how taking a screenshot works):
 sugar traps CTRL-s and sends calls the activity DBus service's Keep()
 method.

 Well, we are doing like that for taking screenshots because the shell is
 the process which knows when a screenshot needs to be taken. This involves
 communication through dbus because two different processes need to
 communicate.

 In the case of shortcuts to toolbar actions, the activity knows when the
 user has pressed the keyboard shortcut, so I think that we should go for a
 solution that only involves the activity process.

 What about listening to key-press in the Activity class? Ideally, we would
 want a better system for registering keyboard shortcuts. Marco, any better
 idea?

 > This calls __keep_clicked_cb(), to make sure it behaves the same as that
 button in the future.

 That method is private, so it shouldn't be called from outside the
 Activity class. Also, I don't think implementation details should go in
 the API docs.

-- 
Ticket URL: <http://dev.laptop.org/ticket/4591#comment:4>
One Laptop Per Child <http://dev.laptop.org>
OLPC bug tracking system



More information about the Bugs mailing list