Log Message
Web Inspector: Pressing enter on a newline in the styles sidebar inserts a semicolon https://bugs.webkit.org/show_bug.cgi?id=146611
Reviewed by Timothy Hatcher. * UserInterface/Views/CSSStyleDeclarationTextEditor.js: (WebInspector.CSSStyleDeclarationTextEditor.prototype._handleEnterKey): Now returns if the line is empty.
Modified Paths
Diff
Modified: trunk/Source/WebInspectorUI/ChangeLog (186283 => 186284)
--- trunk/Source/WebInspectorUI/ChangeLog 2015-07-04 21:46:29 UTC (rev 186283)
+++ trunk/Source/WebInspectorUI/ChangeLog 2015-07-04 21:48:09 UTC (rev 186284)
@@ -1,5 +1,15 @@
2015-07-04 Devin Rousso <drou...@apple.com>
+ Web Inspector: Pressing enter on a newline in the styles sidebar inserts a semicolon
+ https://bugs.webkit.org/show_bug.cgi?id=146611
+
+ Reviewed by Timothy Hatcher.
+
+ * UserInterface/Views/CSSStyleDeclarationTextEditor.js:
+ (WebInspector.CSSStyleDeclarationTextEditor.prototype._handleEnterKey): Now returns if the line is empty.
+
+2015-07-04 Devin Rousso <drou...@apple.com>
+
Web Inspector: Console should indicate if you have unseen messages in console due to filters
https://bugs.webkit.org/show_bug.cgi?id=143166
Modified: trunk/Source/WebInspectorUI/UserInterface/Views/CSSStyleDeclarationTextEditor.js (186283 => 186284)
--- trunk/Source/WebInspectorUI/UserInterface/Views/CSSStyleDeclarationTextEditor.js 2015-07-04 21:46:29 UTC (rev 186283)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/CSSStyleDeclarationTextEditor.js 2015-07-04 21:48:09 UTC (rev 186284)
@@ -445,6 +445,9 @@
var trimmedLine = line.trimRight();
var hasEndingSemicolon = trimmedLine.endsWith(";");
+ if (!trimmedLine.trimLeft().length)
+ return CodeMirror.Pass;
+
if (hasEndingSemicolon && cursor.ch === trimmedLine.length - 1)
++cursor.ch;
_______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes