diff options
author | nyamatongwe <devnull@localhost> | 2011-07-19 11:26:01 +1000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2011-07-19 11:26:01 +1000 |
commit | 79d3de7e480099864a6f69c0f0d0f5701f83201a (patch) | |
tree | bcf4c36ec558af33b8455ed018f5b1ab52720a65 /src | |
parent | bb27e8dd8c0e959c7048a18336ac18d482f4d892 (diff) | |
download | scintilla-mirror-79d3de7e480099864a6f69c0f0d0f5701f83201a.tar.gz |
Added ScrollToStart and ScrollToEnd key commands for OS X.
Diffstat (limited to 'src')
-rw-r--r-- | src/Editor.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index 78b2ac475..a94089e9f 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -4797,6 +4797,8 @@ void Editor::NotifyMacroRecord(unsigned int iMessage, uptr_t wParam, sptr_t lPar case SCI_VERTICALCENTRECARET: case SCI_MOVESELECTEDLINESUP: case SCI_MOVESELECTEDLINESDOWN: + case SCI_SCROLLTOSTART: + case SCI_SCROLLTOEND: break; // Filter out all others like display changes. Also, newlines are redundant @@ -5536,6 +5538,12 @@ int Editor::KeyCommand(unsigned int iMessage) { StartEndDisplayLine(sel.MainCaret(), false), 1), Selection::selStream); SetLastXChosen(); break; + case SCI_SCROLLTOSTART: + ScrollTo(0); + break; + case SCI_SCROLLTOEND: + ScrollTo(MaxScrollPos()); + break; } return 0; } @@ -8507,6 +8515,8 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) { case SCI_DOCUMENTSTARTEXTEND: case SCI_DOCUMENTEND: case SCI_DOCUMENTENDEXTEND: + case SCI_SCROLLTOSTART: + case SCI_SCROLLTOEND: case SCI_STUTTEREDPAGEUP: case SCI_STUTTEREDPAGEUPEXTEND: |