gmamaladze / globalmousekeyhook

This library allows you to tap keyboard and mouse, detect and record their activity even when an application is inactive and runs in background.
MIT License
1.04k stars 257 forks source link

Is there a way to supress RMB click? #150

Open 0xotHik opened 3 years ago

0xotHik commented 3 years ago

Good day! Is there a way to supress RMB click? I have tried private void GlobalHookMouseDownExt(object sender, MouseEventExtArgs e) { if (e.Button == MouseButtons.Right) { e.Handled = true; } But the context menu from RMB click in, for example, Visual Studio — still showing. I guess, that's not as simple, as I hoped? :)