github / Rebel

Cocoa framework for improving AppKit
Other
1.13k stars 111 forks source link

Allow key events and handle escape #105

Closed joshaber closed 11 years ago

joshaber commented 11 years ago

NSPopover allows key events in transient popovers, and so we should too.

This also makes the ESC handling a bit better, though it leaves a bad taste in my mouth. We want ESC to close the popover iff ESC isn't handled by someone else.

The least terrible way I could find to do that was with a key equivalent for a zero-size button.

dannygreg commented 11 years ago

As nasty as it seems, this seems to work nicely :+1: