editor: add F2 keyboard shortcut to bring label property input into viewif selected widget has one

This commit is contained in:
jean-emmanuel 2022-10-18 15:05:05 +02:00
parent 6a0471c8fd
commit c0a3953a0a
4 changed files with 23 additions and 2 deletions

View file

@ -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) {