KeyboardEvent metaKey Property
Definition and Usage
The metaKey property returns a boolean value indicating whether the "META" key was pressed during the key mouse event.
Not all keyboards have a meta key. For Sun Microsystems keyboards and MIT and LISP machine keyboards, it is common. The meta key is marked as "META" or marked with a solid diamond "◆" symbol.
On Mac keyboards, the META key is represented by the "Command/Cmd" ("⌘") key.
Note:This property is read-only.
Example
Check if the "META" key is pressed when the keyboard key is pressed:
var x = document.getElementById("demo"); if (event.metaKey) { x.innerHTML = "The META key was pressed!"; } else { x.innerHTML = "The META key was NOT pressed!"; }
အက္ခရာ
event.metaKey
နည်းပါး အချက်အလက်
သတင်း ပြန်လည်ပေးသည်: |
ဘာလ် အတိုင်း သတင်း ကို ခွင့်ပြုသည် လို့ ဖော်ပြသော ဘာလ် အတိုင်း သတင်း နှင့် အချက်အလက် အခြား ပြင်းအား:
|
---|---|
DOM ပုံစံ: | DOM အဆင်း 2 အချက်အလက်များ |
ဘေ့စ်ဆာဗား က ပြည့်မျှသော ဘေ့စ်ဆာဗား ကူညီပေးသည်
ဗိုင်း | ချီလာ | အိင် | ဖရီစီ | ဆော့ဖ်ဝါး | အိုပရက် |
---|---|---|---|---|---|
metaKey | အထောက်အပံ့ | အထောက်အပံ့ | အထောက်အပံ့ | အထောက်အပံ့ | အထောက်အပံ့ |
ပတ်သက်သော စာမျက်နှာ
HTML DOM ဂျာနယ်လိုက်KeyboardEvent altKey ဗိုင်း
HTML DOM ဂျာနယ်လိုက်KeyboardEvent ctrlKey ဗိုင်း
HTML DOM ဂျာနယ်လိုက်KeyboardEvent shiftKey ဗိုင်း