File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 500500 cm . scrollTo ( null , ( pos . top + pos . bottom ) / 2 - cm . getScrollInfo ( ) . clientHeight / 2 ) ;
501501 } ;
502502
503- cmds [ map [ "Shift-Alt-Up" ] = "selectLinesUpward" ] = function ( cm ) {
503+ var selectLinesCombo = mac ? "Ctrl-Shift-" : "Ctrl-Alt-" ;
504+ cmds [ map [ selectLinesCombo + "Up" ] = "selectLinesUpward" ] = function ( cm ) {
504505 cm . operation ( function ( ) {
505506 var ranges = cm . listSelections ( ) ;
506507 for ( var i = 0 ; i < ranges . length ; i ++ ) {
510511 }
511512 } ) ;
512513 } ;
513- cmds [ map [ "Shift-Alt- Down"] = "selectLinesDownward" ] = function ( cm ) {
514+ cmds [ map [ selectLinesCombo + " Down"] = "selectLinesDownward" ] = function ( cm ) {
514515 cm . operation ( function ( ) {
515516 var ranges = cm . listSelections ( ) ;
516517 for ( var i = 0 ; i < ranges . length ; i ++ ) {
You can’t perform that action at this time.
0 commit comments