Close the widget using 'esc' #11

Closed
alecperkins opened this Issue Jul 5, 2011 · 2 comments

Comments

Projects
None yet
1 participant
@alecperkins
Owner

alecperkins commented Jul 5, 2011

When the user hits 'esc' in the textarea, close the widget

@alecperkins

This comment has been minimized.

Show comment Hide comment
@alecperkins

alecperkins Jul 6, 2011

Owner

Apparently Chrome doesn't fire a keypress event for escape, so, unless that changes, this won't be possible in all browsers.

Owner

alecperkins commented Jul 6, 2011

Apparently Chrome doesn't fire a keypress event for escape, so, unless that changes, this won't be possible in all browsers.

@alecperkins alecperkins closed this Jul 6, 2011

@alecperkins alecperkins reopened this Jul 20, 2011

@alecperkins

This comment has been minimized.

Show comment Hide comment
@alecperkins

alecperkins Jul 20, 2011

Owner

Chrome doesn't fire 'keypress', but it does fire 'keyup' and 'keydown' for escape (e.which is 27), so those can be used instead.

Owner

alecperkins commented Jul 20, 2011

Chrome doesn't fire 'keypress', but it does fire 'keyup' and 'keydown' for escape (e.which is 27), so those can be used instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment