fixup 77a07b7f: don't invoke editor on clicking the name

This commit is contained in:
tophf 2018-01-04 22:25:03 +03:00
parent 66f176992b
commit 1c432b2868

View File

@ -346,7 +346,7 @@ Object.assign(handleEvent, {
ENTRY_ROUTES: { ENTRY_ROUTES: {
'.checker, .enable, .disable': 'toggle', '.checker, .enable, .disable': 'toggle',
'.style-name': 'edit', '.style-name': 'name',
'.homepage': 'external', '.homepage': 'external',
'.check-update': 'check', '.check-update': 'check',
'.update': 'update', '.update': 'update',
@ -368,6 +368,10 @@ Object.assign(handleEvent, {
} }
}, },
name(event) {
if (newUI.enabled) handleEvent.edit(event);
},
edit(event) { edit(event) {
if (event.altKey) { if (event.altKey) {
return; return;