{"action":"created","issue":{"url":"https://api.github.com/repos/quilljs/quill/issues/479","labels_url":"https://api.github.com/repos/quilljs/quill/issues/479/labels{/name}","comments_url":"https://api.github.com/repos/quilljs/quill/issues/479/comments","events_url":"https://api.github.com/repos/quilljs/quill/issues/479/events","html_url":"https://github.com/quilljs/quill/issues/479","id":106376612,"number":479,"title":"What is the best way to disable a certain key?","user":{"login":"jaketodaro","id":4489753,"avatar_url":"https://avatars.githubusercontent.com/u/4489753?v=3","gravatar_id":"","url":"https://api.github.com/users/jaketodaro","html_url":"https://github.com/jaketodaro","followers_url":"https://api.github.com/users/jaketodaro/followers","following_url":"https://api.github.com/users/jaketodaro/following{/other_user}","gists_url":"https://api.github.com/users/jaketodaro/gists{/gist_id}","starred_url":"https://api.github.com/users/jaketodaro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaketodaro/subscriptions","organizations_url":"https://api.github.com/users/jaketodaro/orgs","repos_url":"https://api.github.com/users/jaketodaro/repos","events_url":"https://api.github.com/users/jaketodaro/events{/privacy}","received_events_url":"https://api.github.com/users/jaketodaro/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-14T16:16:23Z","updated_at":"2015-09-14T19:15:15Z","closed_at":"2015-09-14T19:15:15Z","body":"I need to build an editor that simulates a native `input`, so I need to prevent enter from being pressed and causing a newline. To prevent most characters I can just preventDefault on keydown if a disallowed character is pressed, but because I need to disallow enter I also need to delete `quill.modules.keyboard.hotkeys[13]`, but that seems a little gross. Is there a better way to do this?"},"comment":{"url":"https://api.github.com/repos/quilljs/quill/issues/comments/140180539","html_url":"https://github.com/quilljs/quill/issues/479#issuecomment-140180539","issue_url":"https://api.github.com/repos/quilljs/quill/issues/479","id":140180539,"user":{"login":"jhchen","id":192974,"avatar_url":"https://avatars.githubusercontent.com/u/192974?v=3","gravatar_id":"","url":"https://api.github.com/users/jhchen","html_url":"https://github.com/jhchen","followers_url":"https://api.github.com/users/jhchen/followers","following_url":"https://api.github.com/users/jhchen/following{/other_user}","gists_url":"https://api.github.com/users/jhchen/gists{/gist_id}","starred_url":"https://api.github.com/users/jhchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhchen/subscriptions","organizations_url":"https://api.github.com/users/jhchen/orgs","repos_url":"https://api.github.com/users/jhchen/repos","events_url":"https://api.github.com/users/jhchen/events{/privacy}","received_events_url":"https://api.github.com/users/jhchen/received_events","type":"User","site_admin":false},"created_at":"2015-09-14T19:15:15Z","updated_at":"2015-09-14T19:15:15Z","body":"A `removeHotkeys` call was added by #453 but has not been released yet. Quill is in the middle of a big change so the next version will take much longer to get out. I was also considering changing the signature into `removeHotkey` and `removeAllHotkeys` to be more consistent with eventemitter APIs."}}