Window

settings_applicationsEventTarget  >   settings_applicationsWindow  >   settings_applicationswindow

Window

Editing
  • settings_backup_restore
  • bug_report

EventHandleronkeypress

Element에서 키보드의 특정 키의 누름을 유지할 때 버블링되어 발생한다.

insert_drive_fileKeyboardEventinterfaceopen_in_new
KeyboardEvent interface의 keypress 이벤트는 Window의 onkeypress 핸들러에 의해 구현된다.

Window의 onkeypress는(은) KeyboardEvent interface의 keypress 이벤트 타입의 핸들러이고 이벤트 리스너로 사용된다.

onkeypress는(은) GlobalEventHandlers Mixin이 정의하고 HTMLElement, Document, Window, WorkerGlobalScope 인터페이스에서 구현한다.

기본 개요

Element에서 키보드의 특정 키의 누름을 유지할 때 버블링되어 발생한다.

구문

형식
window.onkeypress = function() {};
형식
window.addEventListener("keypress", function() {});

명세

typekeypress
bubblesyes
cancelableyes
targetElement
handleronkeypress

버전 명세

지원 웹브라우저