Skip to main content

KeyboardEvent Object

  • ctrlKey boolean (optional) - whether the Control key was used in an accelerator to trigger the EventControl键是否在加速器中用于触发事件
  • metaKey boolean (optional) - whether a meta key was used in an accelerator to trigger the Event加速器中是否使用了元密钥来触发事件
  • shiftKey boolean (optional) - whether a Shift key was used in an accelerator to trigger the Event加速器中是否使用了Shift键来触发事件
  • altKey boolean (optional) - whether an Alt key was used in an accelerator to trigger the Event加速器中是否使用了Alt键来触发事件
  • triggeredByAccelerator boolean (optional) - whether an accelerator was used to trigger the event as opposed to another user gesture like mouse click是否使用加速器来触发事件,而不是使用其他用户手势(如鼠标点击)