mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-10-29 09:36:16 +01:00
(refs #372)Use shift key instead if ctrl key to select region
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user