hinesboy / mavonEditor

mavonEditor - A markdown editor based on Vue that supports a variety of personalized features
http://www.mavoneditor.com/
MIT License
6.45k stars 918 forks source link

How to disable shortcuts? #341

Open GrayedFox opened 6 years ago

GrayedFox commented 6 years ago

I have set the toolbar to disabled, which I thought would also disable shortcuts, but it has not.

I understand that these two things could/should remain separate, but then how do I disable short cuts?

When I press CTRL + SHIFT + R I want to trigger a browser hard refresh, even if my cursor is in the editable mavon-editor text field.

Thanks!

Siarl commented 1 year ago

I would like the ability to disable the CTRL+BACKSPACE shortcut. By default this should remove the last word that was typed, but mavon-editor removes the entire input. This is very annoying to my users.

altiorem00 commented 7 months ago

I would like the ability to disable the CTRL+BACKSPACE shortcut. By default this should remove the last word that was typed, but mavon-editor removes the entire input. This is very annoying to my users.

@keydown.native.delete.capture="on_delete"

on_delete(event) {
  if (event.ctrlKey) {
    event.stopPropagation();
  }
}