Created attachment 256362 [details] Current Functionality Instead of removing the first indent, pressing delete in an empty rule should not do anything.
<rdar://problem/21720090>
Created attachment 256363 [details] Patch
Comment on attachment 256363 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=256363&action=review > Source/WebInspectorUI/UserInterface/Views/CSSStyleDeclarationTextEditor.js:482 > + if (change.origin !== "+delete" || (!change.to.line && !change.to.ch) || this._completionController.isShowingCompletions()) Does this happen if there is text or only empty? !change.to.line && !change.to.ch will still be true if there is text.
Comment on attachment 256363 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=256363&action=review >> Source/WebInspectorUI/UserInterface/Views/CSSStyleDeclarationTextEditor.js:482 >> + if (change.origin !== "+delete" || (!change.to.line && !change.to.ch) || this._completionController.isShowingCompletions()) > > Does this happen if there is text or only empty? !change.to.line && !change.to.ch will still be true if there is text. This is only supposed to happen if the cursor is on the first character of the first line, regardless of whether that line has text. Since pressing delete removes all markers at the cursor's position, if the cursor is at the beginning of a line it will remove the checkbox marker as well as the newline at the beginning of that line. On the first line, there is no previous line, so pressing delete would just remove the checkbox marker. We don't want this to happen.
Comment on attachment 256363 [details] Patch Clearing flags on attachment: 256363 Committed r186517: <http://trac.webkit.org/changeset/186517>
All reviewed patches have been landed. Closing bug.