Enable use of arrow keys in the title entry - SL #3001
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
Gonzalo Odiard
12 years ago
151 | 151 | |
152 | 152 | toolbar_box = ToolbarBox() |
153 | 153 | |
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() | |
157 | 157 | |
158 | 158 | self._edit_toolbar = EditToolbar() |
159 | 159 | self._edit_toolbar.undo.props.visible = False |
930 | 930 | self._view.copy() |
931 | 931 | |
932 | 932 | def _key_press_event_cb(self, widget, event): |
933 | if self.activity_button.page.title_button.has_focus(): | |
934 | return False | |
933 | 935 | keyname = Gdk.keyval_name(event.keyval) |
934 | 936 | if keyname == 'c' and event.state & Gdk.CONTROL_MASK: |
935 | 937 | self._view.copy() |