Skip to content
Discussion options

You must be logged in to vote

Hello! Thanks for asking!

Please, bear in mind that SharpHook lets you create hooks that are global to the entire OS. The hook will work even if the application is not in the foreground, and it requires special permissions on macOS. Are you sure that this is what you really need? Perhaps you need to handle keyboard events only when your application is in the foreground, or you need to handle the Enter key only when a button is in focus - and for that you should use MAUI-specific APIs.

If you really do need a global hook, then here's a basic usage example.

To be honest, I don't have any experience with MAUI, but the basic idea is that you create an instance of IReactiveGlobalHook (e.g. Tas…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@mateusfrancino
Comment options

Answer selected by mateusfrancino
Comment options

You must be logged in to vote
1 reply
@TolikPylypchuk
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants