Don't show editor.contextDelete option in FF; #128
This commit is contained in:
parent
78d7697845
commit
af41d646dd
|
@ -127,7 +127,7 @@ contextMenus = Object.assign({
|
|||
title: 'openStylesManager',
|
||||
click: browserCommands.openManage,
|
||||
},
|
||||
}, prefs.get('editor.contextDelete') && {
|
||||
}, !FIREFOX && prefs.get('editor.contextDelete') && {
|
||||
'editor.contextDelete': {
|
||||
title: 'editDeleteText',
|
||||
type: 'normal',
|
||||
|
|
16
edit/edit.js
16
edit/edit.js
|
@ -373,7 +373,9 @@ function setupCodeMirror(textarea, index) {
|
|||
hotkeyRerouter.setState(false);
|
||||
wrapper.classList.add('CodeMirror-active');
|
||||
});
|
||||
cm.on('mousedown', (cm, event) => toggleContextMenuDelete.call(cm, event));
|
||||
if (!FIREFOX) {
|
||||
cm.on('mousedown', (cm, event) => toggleContextMenuDelete.call(cm, event));
|
||||
}
|
||||
|
||||
let lastClickTime = 0;
|
||||
const resizeGrip = wrapper.appendChild(template.resizeGrip.cloneNode(true));
|
||||
|
@ -1340,9 +1342,15 @@ function initHooks() {
|
|||
document.querySelector('#lint h2').addEventListener('click', toggleLintReport);
|
||||
}
|
||||
|
||||
document.querySelectorAll(
|
||||
'input:not([type]), input[type="text"], input[type="search"], input[type="number"]')
|
||||
.forEach(e => e.addEventListener('mousedown', toggleContextMenuDelete));
|
||||
if (!FIREFOX) {
|
||||
$$([
|
||||
'input:not([type])',
|
||||
'input[type="text"]',
|
||||
'input[type="search"]',
|
||||
'input[type="number"]',
|
||||
].join(',')
|
||||
).forEach(e => e.addEventListener('mousedown', toggleContextMenuDelete));
|
||||
}
|
||||
|
||||
setupGlobalSearch();
|
||||
setCleanGlobal();
|
||||
|
|
|
@ -95,7 +95,7 @@
|
|||
<span></span>
|
||||
</span>
|
||||
</label>
|
||||
<label>
|
||||
<label class="chromium-only">
|
||||
<span i18n-text="optionsAdvancedContextDelete"></span>
|
||||
<span class="onoffswitch">
|
||||
<input type="checkbox" id="editor.contextDelete">
|
||||
|
|
Loading…
Reference in New Issue
Block a user