void HotkeyInterceptor_HotkeyFired( object sender, HotkeyFiredArgument e) { switch (e.Key) { case Key.Down: OnSelectedNextItem(); break; case Key.Up: OnSelectedPreviousItem(); break; case Key.Left: HandleLeftPressed(); break; case Key.Right: HandleRightPressed(); break; case Key.Delete: HandleDeletePressed(); break; } }
void PasteHotkeyInterceptor_PasteHotkeyFired(object sender, HotkeyFiredArgument e) { logger.Information( "Paste combination duration mediator reacted to paste hotkey.", 1); consumerLoop.Notify( MonitorClipboardCombinationStateAsync, threadCancellationTokenSource.Token); }
void PasteHotkeyInterceptor_PasteHotkeyFired(object sender, HotkeyFiredArgument e) { if (!isCombinationDown) { logger.Information("Paste combination duration mediator reacted to paste hotkey.", 1); isCombinationDown = true; threadLoop.Notify(MonitorClipboardCombinationStateAsync, Token); } else { logger.Information("Paste combination duration mediator ignored paste hotkey because the paste combination was already held down.", 1); } }
void HotkeyInterceptor_HotkeyFired(object sender, HotkeyFiredArgument e) { switch (e.KeyCode) { case KeyboardApi.VK_KEY_DOWN: HandleDownPressed(); break; case KeyboardApi.VK_KEY_UP: HandleUpPressed(); break; case KeyboardApi.VK_KEY_LEFT: HandleLeftPressed(); break; case KeyboardApi.VK_KEY_RIGHT: HandleRightPressed(); break; } }
void HotkeyInterceptor_HotkeyFired(object sender, HotkeyFiredArgument e) { // ReSharper disable once SwitchStatementMissingSomeCases switch (e.KeyCode) { case KeyboardNativeApi.VK_KEY_DOWN: HandleDownPressed(); break; case KeyboardNativeApi.VK_KEY_UP: HandleUpPressed(); break; case KeyboardNativeApi.VK_KEY_LEFT: HandleLeftPressed(); break; case KeyboardNativeApi.VK_KEY_RIGHT: HandleRightPressed(); break; } }