示例#1
0
        private void HandleKeyPress(int virtualKeyCode)
        {
            var currentKey = new KeybindStruct(this._downModifierKeys, virtualKeyCode);

            if (!this._registeredCallbacks.ContainsKey(currentKey))
            {
                return;
            }

            if (this._registeredCallbacks.TryGetValue(currentKey, out var callback))
            {
                callback.Invoke();
            }
        }