editor: disable f2 shortcut if selected widget has no label property
This commit is contained in:
parent
8655a2866c
commit
1c984a57e0
1 changed files with 1 additions and 0 deletions
|
|
@ -455,6 +455,7 @@ class Editor {
|
|||
break
|
||||
case 'f2':
|
||||
if (!this.selectedWidgets.length) return
|
||||
if (this.selectedWidgets[0].props.top === undefined) return
|
||||
if (!this.inspector.expandedCategories.includes('style')) {
|
||||
var header = DOM.get(this.inspector.container, '.category-header[data-name="style"]')[0]
|
||||
if (header) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue