MouseEvent ctrlKey Property
Definition and Usage
The ctrlKey property returns a boolean value indicating whether the "CTRL" key was pressed when the mouse event was triggered.
Note:This property is read-only.
Example
Check if the "CTRL" key is pressed when clicking the mouse button:
if (event.ctrlKey) { alert("The CTRL key was pressed!"); } else { alert("The CTRL key was NOT pressed!"); }
အပြောအရာ
event.ctrlKey
နည်းပညာ အချက်အလက်
နှုတ်ခန့်မှုသတင်း: |
ဘာလိုက်သည် အန်အိုက် အခင်းအတာ ဖြစ်ပွားစဉ် ပယ်ဖို့ ချိန်ရာ ပယ်ဖို့ ရှိမည့် အမှတ်အသား နိုင်ခဲ့သော အရေးယူခြင်းများ:
|
---|---|
DOM ပုံစံကုဒ်: | DOM Level 2 Events |
ဘာသာစကား အကူအညီ
ဗဟုသုတ | Chrome | IE | Firefox | Safari | Opera |
---|---|---|---|---|---|
ctrlKey | ထောက်ပံ့ | ထောက်ပံ့ | ထောက်ပံ့ | ထောက်ပံ့ | ထောက်ပံ့ |
ပတ်သက်တဲ့ စာမျက်နှာ
HTML DOM ကိုးကားရာ:MouseEvent altKey သုံးစွဲ
HTML DOM ကိုးကားရာ:MouseEvent metaKey သုံးစွဲ
HTML DOM ကိုးကားရာ:MouseEvent shiftKey သုံးစွဲ