{"action":"created","issue":{"url":"https://api.github.com/repos/quilljs/quill/issues/833","repository_url":"https://api.github.com/repos/quilljs/quill","labels_url":"https://api.github.com/repos/quilljs/quill/issues/833/labels{/name}","comments_url":"https://api.github.com/repos/quilljs/quill/issues/833/comments","events_url":"https://api.github.com/repos/quilljs/quill/issues/833/events","html_url":"https://github.com/quilljs/quill/issues/833","id":168518126,"number":833,"title":"Incorrect delete behavior on deleting whitespace","user":{"login":"sachinrekhi","id":192650,"avatar_url":"https://avatars.githubusercontent.com/u/192650?v=3","gravatar_id":"","url":"https://api.github.com/users/sachinrekhi","html_url":"https://github.com/sachinrekhi","followers_url":"https://api.github.com/users/sachinrekhi/followers","following_url":"https://api.github.com/users/sachinrekhi/following{/other_user}","gists_url":"https://api.github.com/users/sachinrekhi/gists{/gist_id}","starred_url":"https://api.github.com/users/sachinrekhi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sachinrekhi/subscriptions","organizations_url":"https://api.github.com/users/sachinrekhi/orgs","repos_url":"https://api.github.com/users/sachinrekhi/repos","events_url":"https://api.github.com/users/sachinrekhi/events{/privacy}","received_events_url":"https://api.github.com/users/sachinrekhi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-07-31T13:37:11Z","updated_at":"2016-08-03T03:38:06Z","closed_at":"2016-08-03T03:38:06Z","body":"Generally delete and backspace do the right thing in Quill (ie. backspace deletes the content before the cursor and delete deletes the content after the cursor).\r\n\r\nHowever I've noticed that delete does not work correctly when deleting an empty line with respect to cursor position. When you press delete on an empty line, the cursor position should remain on that line and the content on the subsequent line should come up. While the content from the subsequent line does come up, the cursor is now on the previous line.\r\n\r\nAs a sanity check, I compared my expected behavior to Google Docs and it does what I'm suggesting is the correct behavior.\r\n\r\n**Steps for Reproduction**\r\n\r\n1. Visit beta.quilljs.com\r\n2. Clear editor\r\n3. Type:\r\n```\r\ntest\r\n\r\nagain\r\n```\r\n4. Place cursor on empty line between test and again\r\n5. Hit delete\r\n\r\n**Expected behavior**:\r\nThe empty line is deleted and the cursor is at the beginning of again\r\n\r\n**Actual behavior**:\r\nThe empty line is delete but the cursor position is at the end of test\r\n\r\n**Platforms**:\r\nChrome 51 on Mac 10.11\r\n\r\n**Version**:\r\nQuill 1.0 Beta 9\r\n"},"comment":{"url":"https://api.github.com/repos/quilljs/quill/issues/comments/237126968","html_url":"https://github.com/quilljs/quill/issues/833#issuecomment-237126968","issue_url":"https://api.github.com/repos/quilljs/quill/issues/833","id":237126968,"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":"2016-08-03T03:38:06Z","updated_at":"2016-08-03T03:38:06Z","body":"Thanks guys. This has been fixed in 1.0.0-beta.10."}}
{"actor":{"display_login":"jhchen"}}