From: Art Cancro Date: Tue, 11 Oct 2011 21:18:59 +0000 (-0400) Subject: Changed the way shift/ctrl are observed by the message view and it STILL doesn't... X-Git-Tag: v8.01~3 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=d89c2995e621fb8f5cb4c2777277ebef023b14cf Changed the way shift/ctrl are observed by the message view and it STILL doesn't work with IE9. --- 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) {