Skip to content

Commit

Permalink
Fix item lurker
Browse files Browse the repository at this point in the history
  • Loading branch information
C1rdec committed Mar 21, 2020
1 parent b78f5c7 commit e481095
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Lurker/ClipboardLurker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ public ClipboardLurker(SettingsService settingsService, PoeKeyboardHelper keyboa
/// </summary>
public void BindGlobalClick()
{
this._keyboardEvent.MouseClick += this.KeyboardEvent_MouseClick;
#if (!DEBUG)
this._keyboardEvent.MouseDownExt += this.KeyboardEvent_MouseClick;
#endif
}

Expand All @@ -107,7 +107,7 @@ protected virtual void Dispose(bool disposing)
{
if (disposing)
{
this._keyboardEvent.MouseDownExt -= this.KeyboardEvent_MouseClick;
this._keyboardEvent.MouseClick -= this.KeyboardEvent_MouseClick;
this._keyboardEvent.Dispose();
this._clipboardMonitor.ClipboardChanged -= ClipboardMonitor_ClipboardChanged;
this._settingsService.OnSave -= this.SettingsService_OnSave;
Expand All @@ -130,13 +130,12 @@ private async void SettingsService_OnSave(object sender, EventArgs e)
/// </summary>
/// <param name="sender">The source of the event.</param>
/// <param name="e">The <see cref="System.Windows.Forms.MouseEventArgs"/> instance containing the event data.</param>
private void KeyboardEvent_MouseClick(object sender, MouseEventExtArgs e)
private void KeyboardEvent_MouseClick(object sender, System.Windows.Forms.MouseEventArgs e)
{
Task.Run(() =>
{
if (e.Button == System.Windows.Forms.MouseButtons.Middle && this._settingsService.RemainingMonsterEnabled)
{
e.Handled = true;
this._keyboardHelper.RemainingMonster();
return;
}
Expand Down

0 comments on commit e481095

Please sign in to comment.