kazzkiq / CodeFlask

A micro code-editor for awesome web pages.
https://kazzkiq.github.io/CodeFlask/
MIT License
1.07k stars 120 forks source link

Option to disable keyup events #76

Closed jacksongross closed 5 years ago

jacksongross commented 6 years ago

Hi there, thanks for the great library!

I think it would be good if we could pass some options to disable keyup events on the editor. There currently isn't a way to turn off tab indentation or auto closing parentheses via this library and I can't remove the event listener either because it is defined anonymously.

bradleyjkemp commented 5 years ago

It would be good to be able to control handleSelfClosingCharacters via options the same way handleTabs is done.

kazzkiq commented 5 years ago

That's a good point.

I will work on an option do to disable editor capabilities individually, so user may choose what to keep enabled/disabled.