GTK3: How do I disable default keybinds?

I’m writing a frontend for Mupen64Plus in C#. I want to catch all key events so I can forward them to the emulator’s core.

This works for almost everything, except Enter (Return) and Space. This is because they trigger focus changes and activation.

How do I disable focusing and default activation for an entire window?

You can install an event handler for the key-press-event on the window, there check against Return and Space, and return TRUE in there. I don’t do C# though, so I cannot help you further.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.