Show More
@@ -325,17 +325,18 b' class ConsoleWidget(editwindow.EditWindow):' | |||||
325 |
|
325 | |||
326 | Return True if event as been catched. |
|
326 | Return True if event as been catched. | |
327 | """ |
|
327 | """ | |
328 |
catched = |
|
328 | catched = True | |
329 | # Intercept some specific keys. |
|
329 | # Intercept some specific keys. | |
330 | if event.KeyCode == ord('L') and event.ControlDown() : |
|
330 | if event.KeyCode == ord('L') and event.ControlDown() : | |
331 | catched = True |
|
|||
332 | self.scroll_to_bottom() |
|
331 | self.scroll_to_bottom() | |
|
332 | if event.KeyCode == ord('K') and event.ControlDown() : | |||
|
333 | self.replace_current_edit_buffer('') | |||
333 | elif event.KeyCode == wx.WXK_PAGEUP and event.ShiftDown(): |
|
334 | elif event.KeyCode == wx.WXK_PAGEUP and event.ShiftDown(): | |
334 | catched = True |
|
|||
335 | self.ScrollPages(-1) |
|
335 | self.ScrollPages(-1) | |
336 | elif event.KeyCode == wx.WXK_PAGEDOWN and event.ShiftDown(): |
|
336 | elif event.KeyCode == wx.WXK_PAGEDOWN and event.ShiftDown(): | |
337 | catched = True |
|
|||
338 | self.ScrollPages(1) |
|
337 | self.ScrollPages(1) | |
|
338 | else: | |||
|
339 | catched = False | |||
339 |
|
340 | |||
340 | if self.AutoCompActive(): |
|
341 | if self.AutoCompActive(): | |
341 | event.Skip() |
|
342 | event.Skip() |
General Comments 0
You need to be logged in to leave comments.
Login now