alt-key

How can I detect whether the alt/option key is down in GTK on Mac OS X?

I want to detect whether the alt/option key is pressed during a mouse drag in GTK on Mac OS X. I am using pygtk. Normally, holding down alt would add MOD1_MASK to event.state, but alt does affect event.state at all. In key press events alt shows up as gtk.keysyms.kana_switch, but this is not sufficient for my purposes since the user m...

Capturing Alt+PrintScreen hot key and clipboard contents

I setup catching hotkey on alt+printscreen. It catches perfectly but there is nothing in the buffer - no image. How can I get the image from Clipboard.GetImage() after catching hotkey? Here is the the code. using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.ComponentModel; using System.Da...

WPF: How do I disable the SystemMenu shortcut 'Alt+Space'?

I have a borderless window and created the chrome but I need to disable the 'Alt+Space' shortcut. Any thoughts? ...