Exemple #1
0
 /// <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;
 }
Exemple #2
0
 public void Dispose()
 {
     EventDispatchThread.RemoveKeyListener(Directions);
 }