Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions src/components/element/pages/ide/TwoHeaderMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -522,20 +522,20 @@ export default {
return;
}
// TEMPORARILY DISABLED FOR FILE HANDLING ASSIGNMENT
// Ctrl+F - Find
// if (e.ctrlKey && !e.shiftKey && e.key === 'f') {
// e.preventDefault();
// e.stopPropagation();
// this.find();
// return;
// }
// Ctrl+H - Replace
// if (e.ctrlKey && !e.shiftKey && e.key === 'h') {
// e.preventDefault();
// e.stopPropagation();
// this.replace();
// return;
// }
// Ctrl+F or Cmd+F - Find (block both Ctrl and Meta/Cmd keys)
if ((e.ctrlKey || e.metaKey) && !e.shiftKey && e.key === 'f') {
e.preventDefault();
e.stopPropagation();
// this.find(); // DISABLED
return;
}
// Ctrl+H or Cmd+H - Replace (block both Ctrl and Meta/Cmd keys)
if ((e.ctrlKey || e.metaKey) && !e.shiftKey && e.key === 'h') {
e.preventDefault();
e.stopPropagation();
// this.replace(); // DISABLED
return;
}
// Ctrl+/ - Comment
if (e.ctrlKey && e.key === '/') {
e.preventDefault();
Expand Down
21 changes: 19 additions & 2 deletions src/components/element/pages/ide/editor/CodeEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,25 @@ export default {

'Ctrl-Enter': 'insertLineAfter',
'Shift-Ctrl-Enter': 'insertLineBefore',
// TEMPORARILY DISABLED FOR FILE HANDLING ASSIGNMENT
// 'Ctrl-H': 'replace',

// TEMPORARILY DISABLED FOR FILE HANDLING ASSIGNMENT - Block Find/Replace
'Ctrl-F': (cm) => {
console.log('[FIND BLOCKED] Ctrl+F disabled for assignment');
return false;
}, // Block Ctrl+F (Windows/Linux)
'Cmd-F': (cm) => {
console.log('[FIND BLOCKED] Cmd+F disabled for assignment');
return false;
}, // Block Cmd+F (Mac)
'Ctrl-H': (cm) => {
console.log('[REPLACE BLOCKED] Ctrl+H disabled for assignment');
return false;
}, // Block Ctrl+H (Windows/Linux)
'Cmd-H': (cm) => {
console.log('[REPLACE BLOCKED] Cmd+H disabled for assignment');
return false;
}, // Block Cmd+H (Mac)

'Backspace': (cm) => {
if (cm.somethingSelected())
cm.replaceSelection('', cm.getSelection());
Expand Down