/// <summary> /// Removes a HotKey from this item. /// </summary> /// <param name="listener">The listener to be removed.</param> public void RemoveHotKeyListener(HotKeyListener listener) { if (HotKeyPressed == null) { return; } EventDispatchThread.RemoveKeyListener(OnKeyPressed); HotKeyPressed -= listener; }
public void Dispose() { EventDispatchThread.RemoveKeyListener(Directions); }