mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-12-22 16:29:59 +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){
|
$('div.source-line-num').click(function(e){
|
||||||
var line = $(e.target).data('line');
|
var line = $(e.target).data('line');
|
||||||
var hash = location.hash;
|
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('-');
|
var lines = hash.split('-');
|
||||||
location.hash = lines[0] + '-L' + line;
|
location.hash = lines[0] + '-L' + line;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user