Skip to content

Add KeyUp command behavior to Toolkit #446

Open
@erikvilima

Description

@erikvilima

The first idea was to move KeyboardBehavior from SimpleCalc to Toolkit, so we can add keyboard support to SimpleCalc.

What is needed is a way to fire a command when a key is released on a physical keyboard to have a VirtualKey inputed.

Current usage on SimpleCalc:

<Page ... xmlns:keyboard="using:SimpleCalculator.Keyboard" keyboard:KeyboardBehavior.KeyUpCommand="{Binding InputVirtualKey}">

For reference of the command see: InputVirtualKey

The behavior would make sense also to support generic keyboard input without adding a button for each char in the UI.

Metadata

Metadata

Assignees

Labels

control/extensions-helpers-markupRelated to attached properties, helper classes, or markup extensions without a finer tagkind/enhancementNew feature or request.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions