private static void Dispatcher_AcceleratorKeyActivated(CoreDispatcher sender, AcceleratorKeyEventArgs args)
{
if (!_isEnterPressed) return;
if (_command == null) return;
if (args.VirtualKey != VirtualKey.Enter) return;
if (args.EventType == CoreAcceleratorKeyEventType.KeyDown)
{
args.Handled = true;
_command?.Execute(null);
}
}