alohaeditor / Aloha-Editor

Aloha Editor is a JavaScript content editing library
http://www.alohaeditor.org
Other
2.46k stars 535 forks source link

alt+l combinantion blocks character 'ł' typing #352

Closed mt3o closed 12 years ago

mt3o commented 12 years ago

Hi guys! I'm from Poland, we here type a lot of 'ł' characters. This is typed by alt+l combination. The problem is Aloha's link plugin reservs this for link generation. As effect this plugin is unusable in my sites. As walkaround i found that changing: if ( e.metaKey && e.which == 76 ) { to: if ( false) { in ahola/plugins/common/link/lib/link-plugin.js from 0.20.0-RC3 solves the case. In fact, you can cut the while block out, but I hope you get the point.

It would be great to reassing the shortcut to ctrl+l only, while being able to turn this shortcut off optionally.

draftkraft commented 12 years ago

Thanks.

The short cuts should be localizable.

evo42 commented 12 years ago

This feature is implemented and will be available in 0.20.0-RC8.

You will be able to define your own HotKeys for the insert link and other actions in the configuration like:

Aloha.settings = {
    plugins: {
        link: {
            hotKey: { insertLink: 'ctrl+l' }
        }
    }
}

all the best, Rene