kazu-yamamoto / Firemacs

An extension to add Emacs's editing features to Firefox
http://www.mew.org/~kazu/proj/firemacs/
107 stars 12 forks source link

Mac Option key doesn't work as Alt key #24

Open weverett opened 10 years ago

weverett commented 10 years ago

Under OS X the option key doesn't work as an Alt key. By default, OS X uses the option+key combo to send unicode or setup diacritical marks so that, for example, Alt-x sends the ≈ char and Alt-i e sends ê, etc. However, even if I disable this behavior by setting up a blank option key (with Ukulele or a tool like this one) I still get this behavior.

kazu-yamamoto commented 10 years ago

I'm using Mac. Would you tell me how to disable the default Alt action?

weverett commented 10 years ago

In Firemacs, I disable it by unchecking the "Use Alt as Meta checkbox." With that checkbox checked, I get unicode rather than the alt-characters.

For the OS, you can disable the unicode symbols inserted with an Alt by using a custom keyboard layout with those keys removed. You can create such a layout with the link in my first post (just go to that page, make sure "leave the option keystrokes blank" and click the "create resource" button. Then move the generated .keyboard file to ~/Library/Keyboar\ Layouts and then find and select it in the system preferences ->keyboard menu). Doing this apparently doesn't do make it so that Firemacs gets an alt code though, so it doesn't work.

m11m commented 9 years ago

+1, I also use Option as 'M-' and not yet sure how firemacs can support this.