misc: add AcceptableKeys demo.

This commit is contained in:
rabbitism
2023-07-30 22:34:07 +08:00
parent 87090f2d32
commit 5165933ffa
2 changed files with 12 additions and 2 deletions

View File

@@ -1,8 +1,13 @@
using System.Collections.Generic;
using Avalonia.Input;
using CommunityToolkit.Mvvm.ComponentModel;
namespace Ursa.Demo.ViewModels;
public class KeyGestureInputDemoViewModel: ObservableObject
{
public List<Key> AcceptableKeys { get; set; } = new List<Key>()
{
Key.A, Key.B, Key.C,
};
}