Title: [238096] trunk/Source/WebInspectorUI
- Revision
- 238096
- Author
- [email protected]
- Date
- 2018-11-12 10:09:23 -0800 (Mon, 12 Nov 2018)
Log Message
Web Inspector: Styles: Pressing Tab or Enter should start editing focused property
https://bugs.webkit.org/show_bug.cgi?id=191510
<rdar://problem/45970897>
Reviewed by Dean Jackson.
* UserInterface/Views/SpreadsheetCSSStyleDeclarationEditor.js:
(WI.SpreadsheetCSSStyleDeclarationEditor.prototype._handleKeyDown):
Modified Paths
Diff
Modified: trunk/Source/WebInspectorUI/ChangeLog (238095 => 238096)
--- trunk/Source/WebInspectorUI/ChangeLog 2018-11-12 18:00:12 UTC (rev 238095)
+++ trunk/Source/WebInspectorUI/ChangeLog 2018-11-12 18:09:23 UTC (rev 238096)
@@ -1,3 +1,14 @@
+2018-11-12 Nikita Vasilyev <[email protected]>
+
+ Web Inspector: Styles: Pressing Tab or Enter should start editing focused property
+ https://bugs.webkit.org/show_bug.cgi?id=191510
+ <rdar://problem/45970897>
+
+ Reviewed by Dean Jackson.
+
+ * UserInterface/Views/SpreadsheetCSSStyleDeclarationEditor.js:
+ (WI.SpreadsheetCSSStyleDeclarationEditor.prototype._handleKeyDown):
+
2018-11-08 Joseph Pecoraro <[email protected]>
Web Inspector: Start moving toward better multi-target support
Modified: trunk/Source/WebInspectorUI/UserInterface/Views/SpreadsheetCSSStyleDeclarationEditor.js (238095 => 238096)
--- trunk/Source/WebInspectorUI/UserInterface/Views/SpreadsheetCSSStyleDeclarationEditor.js 2018-11-12 18:00:12 UTC (rev 238095)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/SpreadsheetCSSStyleDeclarationEditor.js 2018-11-12 18:09:23 UTC (rev 238096)
@@ -507,6 +507,16 @@
this._suppressBlur = false;
event.stop();
+ } else if (event.key === "Tab" || event.key === "Enter") {
+ if (!this._hasSelectedProperties())
+ return;
+
+ let property = this._propertyViews[this._focusIndex];
+ if (property && property.enabled) {
+ event.stop();
+ property.nameTextField.startEditing();
+ }
+
} else if (event.key === "Backspace") {
if (!this._hasSelectedProperties())
return;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes