diff --git a/internal/js/files_support.js b/internal/js/files_support.js index 4e38b49..2def58a 100644 --- a/internal/js/files_support.js +++ b/internal/js/files_support.js @@ -223,12 +223,14 @@ function ChangeSize(clicked_button,sz) // whether you click after highlight or before function DoSel(e, el) { - if( e.ctrlKey ) + if( e.ctrlKey || document.fake_ctrl === 1 ) { $(el).toggleClass('highlight') + if( document.fake_ctrl === 1 ) + document.fake_ctrl=0 return } - if( e.shiftKey ) + if( e.shiftKey || document.fake_shift === 1 ) { st=Number($('.highlight').first().attr('ecnt')) end=Number($('.highlight').last().attr('ecnt')) @@ -243,6 +245,9 @@ function DoSel(e, el) $('.entry').slice( end, clicked+1 ).addClass('highlight') else $('.entry').slice( clicked, st ).addClass('highlight') + + if( document.fake_shift === 1 ) + document.fake_shift=0 return } $('.highlight').removeClass('highlight') diff --git a/templates/files.html b/templates/files.html index 888619a..87a47c6 100644 --- a/templates/files.html +++ b/templates/files.html @@ -5,6 +5,8 @@ {% endblock script_content %}