Codebase list sugar-read-activity / ff12c7a
Enable use of arrow keys in the title entry - SL #3001 Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org> Gonzalo Odiard 12 years ago
1 changed file(s) with 5 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
151151
152152 toolbar_box = ToolbarBox()
153153
154 activity_button = ActivityToolbarButton(self)
155 toolbar_box.toolbar.insert(activity_button, 0)
156 activity_button.show()
154 self.activity_button = ActivityToolbarButton(self)
155 toolbar_box.toolbar.insert(self.activity_button, 0)
156 self.activity_button.show()
157157
158158 self._edit_toolbar = EditToolbar()
159159 self._edit_toolbar.undo.props.visible = False
930930 self._view.copy()
931931
932932 def _key_press_event_cb(self, widget, event):
933 if self.activity_button.page.title_button.has_focus():
934 return False
933935 keyname = Gdk.keyval_name(event.keyval)
934936 if keyname == 'c' and event.state & Gdk.CONTROL_MASK:
935937 self._view.copy()