mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-15 03:59:15 +08:00
26 lines
838 B
C#
26 lines
838 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Windows.Input;
|
|
|
|
namespace Wox.Plugin
|
|
{
|
|
public delegate void WoxKeyDownEventHandler(object sender, WoxKeyDownEventArgs e);
|
|
|
|
/// <summary>
|
|
/// Global keyboard events
|
|
/// </summary>
|
|
/// <param name="keyevent">WM_KEYDOWN = 256,WM_KEYUP = 257,WM_SYSKEYUP = 261,WM_SYSKEYDOWN = 260</param>
|
|
/// <param name="vkcode"></param>
|
|
/// <param name="state"></param>
|
|
/// <returns>return true to continue handling, return false to intercept system handling</returns>
|
|
public delegate bool WoxGlobalKeyboardEventHandler(int keyevent, int vkcode, SpecialKeyState state);
|
|
|
|
public class WoxKeyDownEventArgs
|
|
{
|
|
public string Query { get; set; }
|
|
public KeyEventArgs keyEventArgs { get; set; }
|
|
}
|
|
}
|