X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=webcit%2Fstatic%2Fsummaryview.js;h=f3964c053d423a1e0b8495531b68d422eacd254b;hp=1806512aeb533136c7ec9bd18c4842860de8ab56;hb=d89c2995e621fb8f5cb4c2777277ebef023b14cf;hpb=7c039149d277480fef8101964ed05a4fa50aac66 diff --git a/webcit/static/summaryview.js b/webcit/static/summaryview.js index 1806512ae..f3964c053 100644 --- a/webcit/static/summaryview.js +++ b/webcit/static/summaryview.js @@ -454,17 +454,31 @@ function deleteAllSelectedMessages() { deleteAllMarkedRows(); } + +function arrgggh() { + s = '.'; + if (is_shift_pressed) { + s = s + 'S'; + } + s = s + '.'; + if (is_ctrl_pressed) { + s = s + 'C'; + } + s = s + '.'; + $('ib_summary').innerHTML = s; + +} + function CtdlMessageListKeyDown(event) { var key = event.which || event.keyCode; if (key == 16) { /* SHIFT */ is_shift_pressed = true; - $('ib_summary').innerHTML = 'SHIFT'; } else if ( (key == 17) || (key == 18) ) { /* CTRL or ALT */ - $('ib_summary').innerHTML = 'CTRL'; is_ctrl_pressed = true; } + arrgggh(); } function CtdlMessageListKeyUp(event) { @@ -472,15 +486,14 @@ function CtdlMessageListKeyUp(event) { if (key == 16) { /* SHIFT */ is_shift_pressed = false; - $('ib_summary').innerHTML = ' '; } else if ( (key == 17) || (key == 18) ) { /* CTRL or ALT */ is_ctrl_pressed = false; - $('ib_summary').innerHTML = ' '; } else if (key == 46) { /* DELETE */ deleteAllSelectedMessages(); } + arrgggh(); } function clearMessage(msgId) {