~ubuntu-branches/ubuntu/wily/spyder/wily-proposed

« back to all changes in this revision

Viewing changes to spyderlib/widgets/shell.py

  • Committer: Package Import Robot
  • Author(s): Picca Frédéric-Emmanuel
  • Date: 2013-08-19 21:12:20 UTC
  • mfrom: (1.2.3)
  • Revision ID: package-import@ubuntu.com-20130819211220-9s0osey9u00x9nl2
Tags: 2.2.2+dfsg-1
Imported Upstream version 2.2.2+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
465
465
    def _key_ctrl_space(self):
466
466
        raise NotImplementedError
467
467
    def _key_home(self, shift, ctrl):
468
 
        raise NotImplementedError
 
468
        if self.is_cursor_on_last_line():
 
469
            self.stdkey_home(shift, ctrl, self.current_prompt_pos)
469
470
    def _key_end(self, shift, ctrl):
470
 
        raise NotImplementedError
 
471
        if self.is_cursor_on_last_line():
 
472
            self.stdkey_end(shift, ctrl)
471
473
    def _key_pageup(self):
472
474
        raise NotImplementedError
473
475
    def _key_pagedown(self):
752
754
        if not self.is_completion_widget_visible():
753
755
            self.show_code_completion(automatic=False)
754
756
                
755
 
    def _key_home(self, shift, ctrl):
756
 
        """Action for Home key"""
757
 
        if self.is_cursor_on_last_line():
758
 
            self.stdkey_home(shift, ctrl, self.current_prompt_pos)
759
 
                
760
 
    def _key_end(self, shift, ctrl):
761
 
        """Action for End key"""
762
 
        if self.is_cursor_on_last_line():
763
 
            self.stdkey_end(shift, ctrl)
764
 
                
765
757
    def _key_pageup(self):
766
758
        """Action for PageUp key"""
767
759
        pass