다음을 통해 공유


InputKeyboardSource.KeyDown 이벤트

정의

ALT 키를 누르지 않을 때 사용자가 키를 누를 때 발생합니다.

// Register
event_token KeyDown(TypedEventHandler<InputKeyboardSource, KeyEventArgs const&> const& handler) const;

// Revoke with event_token
void KeyDown(event_token const* cookie) const;

// Revoke with event_revoker
InputKeyboardSource::KeyDown_revoker KeyDown(auto_revoke_t, TypedEventHandler<InputKeyboardSource, KeyEventArgs const&> const& handler) const;
public event TypedEventHandler<InputKeyboardSource,KeyEventArgs> KeyDown;
function onKeyDown(eventArgs) { /* Your code */ }
inputKeyboardSource.addEventListener("keydown", onKeyDown);
inputKeyboardSource.removeEventListener("keydown", onKeyDown);
- or -
inputKeyboardSource.onkeydown = onKeyDown;
Public Custom Event KeyDown As TypedEventHandler(Of InputKeyboardSource, KeyEventArgs) 

이벤트 유형

설명

IME(입력 방법 편집기)가 사용하도록 설정된 경우 앱은 이 이벤트를 수신하지 않습니다. IME(입력 방법 편집기)는 모든 키보드 입력을 처리하고 Handled를 true로 설정합니다.

적용 대상

추가 정보