You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Connected.Components/Services/KeyInterceptor/IKeyInterceptor.cs

22 lines
542 B

2 years ago
// Copyright (c) MudBlazor 2021
// MudBlazor licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using Microsoft.AspNetCore.Components.Web;
namespace Connected.Services;
public delegate void KeyboardEvent(KeyboardEventArgs args);
public interface IKeyInterceptor : IDisposable
{
Task Connect(string elementId, KeyInterceptorOptions options);
Task Disconnect();
Task UpdateKey(KeyOptions option);
event KeyboardEvent KeyDown;
event KeyboardEvent KeyUp;
}