From: Chris Porter Date: Mon, 20 Oct 2008 19:05:54 +0000 (+0100) Subject: Fix alt+a for multiple hilight levels. X-Git-Url: https://jfr.im/git/irc/quakenet/qwebirc.git/commitdiff_plain/ffe442b08c729645d9408cd9e4b76375b6c3ca9a Fix alt+a for multiple hilight levels. --- diff --git a/js/ui/baseui.js b/js/ui/baseui.js index 796929e..ed05624 100644 --- a/js/ui/baseui.js +++ b/js/ui/baseui.js @@ -102,13 +102,18 @@ qwebirc.ui.StandardUI = new Class({ return; if(x.key == "a" || x.key == "A") { + var highestNum = 0; + var highestIndex = -1; new Event(x).stop(); for(var i=0;i highestNum) { + highestIndex = i; + highestNum = h; } } + if(highestIndex > -1) + this.selectWindow(this.windowArray[highestIndex]); } else if(x.key >= '0' && x.key <= '9') { new Event(x).stop();