Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は jQuery で小さなゲームを作っていCtrlます。
動作させたい要素のバインドmouseenterとイベント。keypress
mouseenter
keypress
$( "#id_of_element" ).bind('mouseenter keypress', function(event) { if (event.ctrlKey)//check if cntrl key is pressed { //your code here } });