HTML DOM KeyboardEvent
❮ DOM ပွဲများ ❮ ဖြစ်ရပ်အရာဝတ္ထုများ
KeyboardEvent Object
အသုံးပြုသူ ကီးဘုတ်ပေါ်ရှိ သော့ကို နှိပ်သောအခါ ဖြစ်ပေါ်သည့် အဖြစ်အပျက်များသည် KeyboardEvent Object နှင့် သက်ဆိုင်ပါသည်။
KeyboardEvent Properties နှင့် Methods
Property/Method | Description |
---|---|
altKey | Returns whether the "ALT" key was pressed when the key event was triggered |
charCode | Returns the Unicode character code of the key that triggered the event |
code | Returns the code of the key that triggered the event |
ctrlKey | Returns whether the "CTRL" key was pressed when the key event was triggered |
getModifierState() | Returns true if the specified key is activated |
isComposing | Returns whether the state of the event is composing or not |
key | Returns the key value of the key represented by the event |
keyCode | Deprecated. Avoid using it. |
location | Returns the location of a key on the keyboard or device |
metaKey | Returns whether the "meta" key was pressed when the key event was triggered |
repeat | Returns whether a key is being hold down repeatedly, or not |
shiftKey | Returns whether the "SHIFT" key was pressed when the key event was triggered |
which | Returns the Unicode character code of the key that triggered the onkeypress event, or the Unicode key code of the key that triggered the onkeydown or onkeyup event |
အမွေဆက်ခံထားသော ပိုင်ဆိုင်မှုများနှင့် နည်းလမ်းများ
KeyboardEvent သည် ဂုဏ်သတ္တိများနှင့် နည်းလမ်းအားလုံးကို အမွေဆက်ခံသည်-
ပွဲအမျိုးအစားများ
ဤဖြစ်ရပ်အမျိုးအစားများသည် KeyboardEvent Object နှင့်သက်ဆိုင်သည်-
Event | Description |
---|---|
onkeydown | The event occurs when the user is pressing a key |
onkeypress | The event occurs when the user presses a key |
onkeyup | The event occurs when the user releases a key |
❮ DOM ပွဲများ ❮ ဖြစ်ရပ်အရာဝတ္ထုများ