(refs #372)Use shift key instead if ctrl key to select region

This commit is contained in:
takezoe
2014-05-18 22:58:16 +09:00
parent 4dc60e887f
commit 2a4b0f5ddb

View File

@@ -100,7 +100,7 @@ $(window).load(function(){
$('div.source-line-num').click(function(e){
var line = $(e.target).data('line');
var hash = location.hash;
if(e.ctrlKey == true && hash.match(/#L\d+(-L\d+)?/)){
if(e.shiftKey == true && hash.match(/#L\d+(-L\d+)?/)){
var lines = hash.split('-');
location.hash = lines[0] + '-L' + line;
} else {