Yes, as I did with my Chess extension:
<body name="b" onkeyup="keyPress(event)">
<script>
function keyPress(e) {
var unicode=e.keyCode? e.keyCode : e.charCode;
var key = String.fromCharCode(unicode);
document.p.innerHTML = key + ' (' + unicode + ') was
pressed.' ;
}
</script>
<form name="p">0</form>
</body>
As with the multiple checkbox, here is a script:
* http://pastebin.org/76338
On Jan 14, 6:39 pm, ser_zone <[email protected]> wrote:
> I'm trying to allow users to select multiple check boxes by holding
> down shift and selecting a checkbox. I can't seem to get it to work in
> a pop-up window. Is it possible to capture the key down event via
> javascript in that pop-up window?
>
> Thank you.
--
You received this message because you are subscribed to the Google Groups
"Chromium-extensions" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/chromium-extensions?hl=en.