P
Paul Gorodyansky
Hi,
Question about
event.altKey
event.ctrlKey
event.shiftKey
If I need to catch when a user does say Ctrl+Alt+G -
somehow event.altKey is not working, i.e.:
a) I press Shift+K and this works:
if (evt.shiftKey)
{
alert("************** Shift");
....
}
b) I press Ctrl+K and this works:
if (evt.ctrlKey)
{
alert("************* Ctrl");
.........
}
c) But when I press Ctrl+Alt+K - nothing:
if (evt.ctrlKey && evt.altKey )
{
alert("****************** CTRL+Alt");
...
}
Anyone knows why?
Question about
event.altKey
event.ctrlKey
event.shiftKey
If I need to catch when a user does say Ctrl+Alt+G -
somehow event.altKey is not working, i.e.:
a) I press Shift+K and this works:
if (evt.shiftKey)
{
alert("************** Shift");
....
}
b) I press Ctrl+K and this works:
if (evt.ctrlKey)
{
alert("************* Ctrl");
.........
}
c) But when I press Ctrl+Alt+K - nothing:
if (evt.ctrlKey && evt.altKey )
{
alert("****************** CTRL+Alt");
...
}
Anyone knows why?