remove the no longer used defocusEditor command
This commit is contained in:
parent
d6c595d94e
commit
a249167539
|
@ -138,7 +138,7 @@
|
||||||
<a data-action="next" i18n-title="genericNext" href="#" data-hotkey-tooltip="findNext">
|
<a data-action="next" i18n-title="genericNext" href="#" data-hotkey-tooltip="findNext">
|
||||||
<svg class="svg-icon"><use xlink:href="#svg-icon-v"/></svg>
|
<svg class="svg-icon"><use xlink:href="#svg-icon-v"/></svg>
|
||||||
</a>
|
</a>
|
||||||
<a data-action="close" i18n-title="confirmClose" href="#" data-hotkey-tooltip="defocusEditor">
|
<a data-action="close" i18n-title="confirmClose" href="#" data-hotkey-tooltip="=Esc">
|
||||||
<svg class="svg-icon dismiss"><use xlink:href="#svg-icon-close"/></svg>
|
<svg class="svg-icon dismiss"><use xlink:href="#svg-icon-close"/></svg>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -13,7 +13,6 @@ onDOMscriptReady('/codemirror.js').then(() => {
|
||||||
save,
|
save,
|
||||||
toggleStyle,
|
toggleStyle,
|
||||||
jumpToLine,
|
jumpToLine,
|
||||||
defocusEditor,
|
|
||||||
nextEditor, prevEditor,
|
nextEditor, prevEditor,
|
||||||
};
|
};
|
||||||
// reroute handling to nearest editor when keypress resolves to one of these commands
|
// reroute handling to nearest editor when keypress resolves to one of these commands
|
||||||
|
@ -149,10 +148,6 @@ onDOMscriptReady('/codemirror.js').then(() => {
|
||||||
return this.display.wrapper.parentNode;
|
return this.display.wrapper.parentNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
function defocusEditor(cm) {
|
|
||||||
cm.display.input.blur();
|
|
||||||
}
|
|
||||||
|
|
||||||
function nextEditor(cm) {
|
function nextEditor(cm) {
|
||||||
return nextPrevEditor(cm, 1);
|
return nextPrevEditor(cm, 1);
|
||||||
}
|
}
|
||||||
|
@ -513,7 +508,8 @@ onDOMscriptReady('/codemirror.js').then(() => {
|
||||||
el._hotkeyTooltipKeyMap = mapName;
|
el._hotkeyTooltipKeyMap = mapName;
|
||||||
const title = el._hotkeyTooltipTitle = el._hotkeyTooltipTitle || el.title;
|
const title = el._hotkeyTooltipTitle = el._hotkeyTooltipTitle || el.title;
|
||||||
const cmd = el.dataset.hotkeyTooltip;
|
const cmd = el.dataset.hotkeyTooltip;
|
||||||
const key = findKeyForCommand(cmd, mapName) ||
|
const key = cmd[0] === '=' ? cmd.slice(1) :
|
||||||
|
findKeyForCommand(cmd, mapName) ||
|
||||||
extraKeys && findKeyForCommand(cmd, extraKeys);
|
extraKeys && findKeyForCommand(cmd, extraKeys);
|
||||||
const newTitle = title + (title && key ? '\n' : '') + (key || '');
|
const newTitle = title + (title && key ? '\n' : '') + (key || '');
|
||||||
if (el.title !== newTitle) el.title = newTitle;
|
if (el.title !== newTitle) el.title = newTitle;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user