From d89c2995e621fb8f5cb4c2777277ebef023b14cf Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Tue, 11 Oct 2011 17:18:59 -0400 Subject: [PATCH] Changed the way shift/ctrl are observed by the message view and it STILL doesn't work with IE9. --- webcit/static/summaryview.js | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) 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) { -- 2.30.2