CoreComponentInputSource.KeyDown Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Raised when a key is pressed for the current active hosted XAML element.
// Register
event_token KeyDown(TypedEventHandler<IInspectable, KeyEventArgs const&> const& handler) const;
// Revoke with event_token
void KeyDown(event_token const* cookie) const;
// Revoke with event_revoker
CoreComponentInputSource::KeyDown_revoker KeyDown(auto_revoke_t, TypedEventHandler<IInspectable, KeyEventArgs const&> const& handler) const;
public event TypedEventHandler<object,KeyEventArgs> KeyDown;
function onKeyDown(eventArgs) { /* Your code */ }
coreComponentInputSource.addEventListener("keydown", onKeyDown);
coreComponentInputSource.removeEventListener("keydown", onKeyDown);
- or -
coreComponentInputSource.onkeydown = onKeyDown;
Public Custom Event KeyDown As TypedEventHandler(Of Object, KeyEventArgs)
Event Type
TypedEventHandler<IInspectable,KeyEventArgs>
Applies to
Váš názor
https://aka.ms/ContentUserFeedback.
Připravujeme: V průběhu roku 2024 budeme postupně vyřazovat problémy z GitHub coby mechanismus zpětné vazby pro obsah a nahrazovat ho novým systémem zpětné vazby. Další informace naleznete v tématu:Odeslat a zobrazit názory pro