Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix custom action shortcut not working #75

Merged
merged 3 commits into from
Apr 15, 2019
Merged

fix custom action shortcut not working #75

merged 3 commits into from
Apr 15, 2019

Conversation

ysykzheng
Copy link

No description provided.

@Ionaru
Copy link
Owner

Ionaru commented Apr 15, 2019

Can you please explain what is not working for you?

Seems I have no issues defining shortcuts (they work, too).

new EasyMDE({
    shortcuts: {
        toggleOrderedList: "Ctrl-Alt-J"
    }
});

EasyMDE 2.5.1
Chromium 73
Linux Ubuntu 18.04

@ysykzheng
Copy link
Author

hello,
I had add custom action, same like this: https://jsfiddle.net/nkL8jhcd/

custom action to add custom shortcuts, not working.

shortcuts: {
              "link": "Shift-Cmd-K",
              "alert": "Shift-Cmd-L",
            },

@Ionaru
Copy link
Owner

Ionaru commented Apr 15, 2019

I see the problem. Thank you for bringing this up and making a fix!

@Ionaru Ionaru merged commit 8e46c9f into Ionaru:master Apr 15, 2019
Ionaru added a commit that referenced this pull request Apr 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants