Menu
Hello.
I have a table with event listener
table.onclick= function(e) {..}
if(e.type==’click’) i’m highlighting the row
and un-highlight the others. Is shift is pressed
i highlight two rows.
table.onclick= function(e) {
…
if(e.type==’click’)
{
if (!e.shiftKey || WHAT is here ) disselect_all();
highlight(row.id);
}
}
How do I make it to work also with “Q” button pressed down ?
So if the Q key is pressed the other rows remains as the were..
Thanks ahead.
Ps. pay attention to the if(e.type==’click’) ?