editor: add F2 keyboard shortcut to bring label property input into viewif selected widget has one
This commit is contained in:
parent
6a0471c8fd
commit
c0a3953a0a
4 changed files with 23 additions and 2 deletions
|
|
@ -53,7 +53,7 @@ module.exports = {
|
|||
|
||||
if (selector.indexOf('>') === 0) selector = ':scope ' + selector
|
||||
|
||||
if (selector.indexOf(' ') === -1 && selector.indexOf(',') === -1) {
|
||||
if (selector.indexOf(' ') === -1 && selector.indexOf(',') === -1 && selector.indexOf('[') === -1) {
|
||||
if (selector.indexOf('#') === 0 && context === document) {
|
||||
nodes = [document.getElementById(selector.substr(1, selector.length - 1))]
|
||||
} else if (selector.lastIndexOf('.') === 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue