Acconut / brackets-nodejs

Connecting Brackets and Node.js
MIT License
81 stars 16 forks source link

OPTION-N shortcut key doesn't Run #17

Closed russch closed 10 years ago

russch commented 10 years ago

Brackets Sprint 38 on Mavericks, Node JS Bindings 1.1.3

Repro:

  1. Open an app.js file. Hit OPTION-1 and OPTION-SHIFT-1: Note that built-in Brackets shortcut keys using OPTION are collapsing/expanding source.
  2. Hit OPTION-N

Result: A tilde (~) character appears in source Expect: app.js to be run by Brackets

Acconut commented 10 years ago

This seem to only be a problem on OSX as I'm unable to reproduce this on Windows. If you open another editor/textinput, does pressing OPTION-N also insert a tilde?

russch commented 10 years ago

Yes. OPTION-N in Text Wrangler gives me a tilde.

On Sun, Apr 20, 2014 at 7:39 PM, Acconut notifications@github.com wrote:

This seem to only be a problem on OSX as I'm unable to reproduce this on Windows. If you open another editor/textinput, does pressing OPTION-N also insert a tilde?

— Reply to this email directly or view it on GitHubhttps://github.com/Acconut/brackets-nodejs/issues/17#issuecomment-40907970 .

Acconut commented 10 years ago

Ok, thanks. I think that we aren't able to overwrite this shortcut as it's already used but I could be wrong. The only solution would be to change the shortcut. Could you please change it in main.js#L466 to something else and try whether it works. Please try Alt-M (or other chars) and Ctrl-N.

russch commented 10 years ago

ALT-M worked like a charm.

On Mon, Apr 21, 2014 at 10:20 AM, Acconut notifications@github.com wrote:

Ok, thanks. I think that we aren't able to overwrite this shortcut as it's already used but I could be wrong. The only solution would be to change the shortcut. Could you please change it in main.js#L466https://github.com/Acconut/brackets-nodejs/blob/master/main.js#L466to something else and try whether it works. Please try Alt-M (or other chars) and Ctrl-N.

— Reply to this email directly or view it on GitHubhttps://github.com/Acconut/brackets-nodejs/issues/17#issuecomment-40938544 .

Acconut commented 10 years ago

Well, then we just need to use another shortcut. The question is which?

russch commented 10 years ago

Well, that's a question for the author of this fine extension to answer. I'm happy with my ALT-M, though :)

On Mon, Apr 21, 2014 at 11:03 AM, Acconut notifications@github.com wrote:

Well, then we just need to use another shortcut. The question is which?

— Reply to this email directly or view it on GitHubhttps://github.com/Acconut/brackets-nodejs/issues/17#issuecomment-40941958 .

Acconut commented 10 years ago

As it seems Alt-M isn't used on Windows or in Brackets. I might change the shortcut. And thanks for your support. :)

wangchou commented 9 years ago

I face the same issue today...

This page explains how OS X treat the Alt_key.

https://en.wikipedia.org/wiki/Alt_key

If I hold Alt-Key and type from A-Z, I will get this å∫ç∂´ƒ©˙ˆ∆˚¬µ˜øπœ®ß†¨√∑≈¥Ω

But, ALT-M works... I don't know why.