mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 23:16:30 +00:00
add offset
fixes add visual validation border and validate functionality
This commit is contained in:
@@ -142,16 +142,9 @@ public partial class App
|
||||
{
|
||||
var args = (KeyEventArgs)e;
|
||||
var keyEvent = new KeyEvent(sender, args, _formState.ActiveWindow);
|
||||
_ = ThrottleExt.Throttle(() => _mediator.Publish(keyEvent), TimeSpan.FromMilliseconds(50));
|
||||
_ = ThrottleExt.ThrottleRunFirst(() => _mediator.Publish(keyEvent), TimeSpan.FromMilliseconds(50));
|
||||
}
|
||||
|
||||
private readonly Dictionary<string, WindowEnum> _uiElementToWindowEnum = new()
|
||||
{
|
||||
{ "LibVLCSharp.WPF.ForegroundWindow", WindowEnum.Annotator },
|
||||
{ "Azaion.Annotator.Annotator", WindowEnum.Annotator },
|
||||
{ "Azaion.Dataset.DatasetExplorer", WindowEnum.DatasetExplorer }
|
||||
};
|
||||
|
||||
protected override async void OnExit(ExitEventArgs e)
|
||||
{
|
||||
base.OnExit(e);
|
||||
|
||||
Reference in New Issue
Block a user