You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Detection of Ctrl and Shift for key/mouse events work, but not Alt detection.
Here's example code you can load in the browser sample app:
<html><head><title>Ctrl/Alt/Shift detection test</title></head><body>
Click while holding Ctrl or Alt or Shift...<p><divid="test"></div><script>
function HandleClick(event)
{letcurtime=newDate().toLocaleTimeString();if(event.ctrlKey)document.getElementById('test').textContent=Ctrl+clickat ${curtime};
else if (event.altKey) document.getElementById('test').textContent = Alt+click at ${curtime};
else if (event.shiftKey) document.getElementById('test').textContent = Shift+click at ${curtime};
}document.addEventListener('click',HandleClick);</script></body></html>
The text was updated successfully, but these errors were encountered:
Detection of Ctrl and Shift for key/mouse events work, but not Alt detection.
Here's example code you can load in the browser sample app:
The text was updated successfully, but these errors were encountered: