@@ -8,15 +8,21 @@ define(function (require, exports, module) {
88
99 // command ids
1010 const CMD_TOGGLE_BOOKMARK = "bookmarks.toggleBookmark" ;
11+ const CMD_NEXT_BOOKMARK = "bookmarks.nextBookmark" ;
12+ const CMD_PREV_BOOKMARK = "bookmarks.prevBookmark" ;
1113
1214 // default keyboard shortcuts
1315 const TOGGLE_BOOKMARK_KB_SHORTCUT = "Ctrl-Alt-B" ;
16+ const NEXT_BOOKMARK_KB_SHORTCUT = "Ctrl-Alt-N" ;
17+ const PREV_BOOKMARK_KB_SHORTCUT = "Ctrl-Alt-P" ;
1418
1519 /**
1620 * This function is responsible for registering all the required commands
1721 */
1822 function _registerCommands ( ) {
1923 CommandManager . register ( Strings . TOGGLE_BOOKMARK , CMD_TOGGLE_BOOKMARK , Bookmarks . toggleBookmark ) ;
24+ CommandManager . register ( Strings . GOTO_NEXT_BOOKMARK , CMD_NEXT_BOOKMARK , Bookmarks . goToNextBookmark ) ;
25+ CommandManager . register ( Strings . GOTO_PREV_BOOKMARK , CMD_PREV_BOOKMARK , Bookmarks . goToPrevBookmark ) ;
2026 }
2127
2228 /**
@@ -27,6 +33,8 @@ define(function (require, exports, module) {
2733 navigateMenu . addMenuDivider ( ) ; // add a line to separate the other items from the bookmark ones
2834
2935 navigateMenu . addMenuItem ( CMD_TOGGLE_BOOKMARK , TOGGLE_BOOKMARK_KB_SHORTCUT ) ;
36+ navigateMenu . addMenuItem ( CMD_NEXT_BOOKMARK , NEXT_BOOKMARK_KB_SHORTCUT ) ;
37+ navigateMenu . addMenuItem ( CMD_PREV_BOOKMARK , PREV_BOOKMARK_KB_SHORTCUT ) ;
3038 }
3139
3240 function init ( ) {
0 commit comments