Файли
openidea/src/platform/keymaps/eclipse-macos.ts
T
l0ng-aiтаClaude Opus 5.5 425801be34 feat(database): submit and revert table edits from the keyboard (#1589)
The table editor's Submit and Revert were toolbar buttons only. They are now the db.submitChanges and db.revertChanges actions, enabled while a table editor has focus and pending edits, bound to ⌘↩ / Ctrl+Enter and ⌥⌘Z / Ctrl+Alt+Z in the IntelliJ keymaps (unbound in Eclipse, where ⌥⌘Z is Surround With). A text field keeps ⌘↩ for its own edit (Value panel, large-value dialog), and query consoles keep Execute.

Closes #1549

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-06 00:08:37 +08:00

157 рядки
5.5 KiB
TypeScript

/**
* Eclipse preset inheriting Mac OS X 10.5+, with explicit removals preserved.
* Source: JetBrains/intellij-community@74dbd42b7a8787b0707437cb857c68e78199f611
* plugins/keymaps/eclipse-keymap/resources/keymaps/Eclipse (Mac OS X).xml
*/
import { intellijMacos } from "./intellij-macos";
export const eclipseMacos: Record<string, string[]> = {
...intellijMacos,
// $Undo / $Redo stay unbound as in the parent keymap: the focused editor or view handles them.
"code.autoIndentLines": ["Meta+I"],
"navigate.back": ["Meta+[", "Button4"],
"refactor.changeSignature": ["Alt+Meta+C"],
"db.modifyTable": ["Alt+Meta+C"],
"vcs.commit": [],
"editor.closeTab": ["Meta+W"],
"toolwindow.closeContent": ["Meta+W"],
"editor.closeAllTabs": ["Meta+Shift+W"],
"analyze.inspectFile": [],
"project.collapseAll": ["Meta+Shift+NumpadDivide"],
"code.foldAll": ["Meta+Shift+NumpadDivide"],
"code.fold": ["Meta+NumpadSubtract"],
"code.commentBlock": ["Shift+Meta+/"],
"build.buildProject": ["Meta+B"],
"project.copyElement": [],
"run.debug": ["Meta+F11"],
"project.open": ["F3"],
"debug.jumpToSource": ["F3"],
"diff.jumpToSource": ["F3"],
"find.popup.openResult": ["F3"],
"editor.codeBlockEnd": ["Ctrl+]", "Shift+Ctrl+P"],
"code.deleteLine": ["Meta+D"],
"code.duplicateLine": [],
"code.extendSelection": ["Shift+Ctrl+Up"],
"code.toggleCase": ["Shift+Meta+X", "Shift+Meta+Y"],
"code.shrinkSelection": ["Shift+Ctrl+Down"],
"debug.evaluate": ["Meta+U"],
"project.expandAll": ["Meta+Shift+NumpadMultiply"],
"code.unfoldAll": ["Meta+NumpadMultiply"],
"code.unfold": ["Meta+NumpadAdd"],
"code.expandAllToLevel1": [],
"code.expandAllToLevel2": [],
"code.expandAllToLevel3": [],
"code.expandAllToLevel4": [],
"code.expandAllToLevel5": [],
"code.expandToLevel1": [],
"code.expandToLevel2": [],
"code.expandToLevel3": [],
"code.expandToLevel4": [],
"code.expandToLevel5": [],
"refactor.extractMethod": ["Meta+Alt+M"],
"navigate.fileStructure": ["Meta+O"],
"find.inFile": [],
"find.inPath": ["Ctrl+H"],
"find.next": ["Meta+K"],
// The parent's Push binding would shadow Find Previous whenever a repository is open.
"vcs.push": [],
"find.previous": ["Meta+Shift+K"],
"find.popup.nextResult": ["Meta+K"],
"find.popup.previousResult": ["Shift+Meta+K"],
"find.usages": ["Meta+Shift+G"],
"project.findUsages": ["Meta+Shift+G"],
"navigate.forward": ["Meta+]", "Button5"],
"navigate.gotoTest": [],
"navigate.gotoClass": ["Shift+Meta+T"],
"navigate.declaration": ["F3"],
"db.goToDdl": ["F3"],
"navigate.gotoFile": ["Shift+Meta+R"],
"navigate.implementation": [],
"navigate.gotoLine": ["Meta+L"],
"navigate.nextError": ["Meta+."],
"navigate.prevError": ["Meta+Shift+."],
"navigate.superMethod": [],
"navigate.typeDeclaration": [],
"find.highlightUsages": [],
"code.implementMethods": [],
"refactor.inline": ["Meta+Alt+I"],
"code.insertLiveTemplate": [],
"refactor.extractConstant": [],
"refactor.extractVariable": ["Meta+Alt+L"],
"navigate.lastEditLocation": ["Ctrl+Q"],
"toolwindow.jumpToLast": [],
"navigate.nextHighlightedUsage": [],
"navigate.nextMethod": ["Ctrl+Alt+Down"],
"navigate.prevHighlightedUsage": [],
"navigate.previousMethod": ["Ctrl+Alt+Up"],
"refactor.move": ["Meta+Alt+V"],
"project.move": ["Meta+Alt+V"],
"code.moveStatementDown": ["Alt+Down"],
"code.moveStatementUp": ["Alt+Up"],
"diff.nextDifference": ["Ctrl+F7"],
"diff.prevFile": [],
"diff.nextFile": [],
"navigate.nextOccurrence": [],
"editor.nextTab": ["Meta+F6", "Meta+Alt+Right"],
"code.optimizeImports": ["Shift+Meta+O"],
"project.optimizeImports": ["Shift+Meta+O"],
"code.overrideMethods": [],
"code.parameterInfo": ["Ctrl+Shift+Space"],
"code.expressionTypeInfo": [],
"navigate.prevOccurrence": [],
"editor.prevTab": ["Shift+Meta+F6", "Meta+Alt+Left"],
"code.quickDocumentation": ["F2"],
"db.quickDoc": ["F2"],
"localHistory.recentChanges": [],
"code.reformat": ["Shift+Meta+F"],
"project.reformatCode": ["Shift+Meta+F"],
"code.unwrap": [],
"find.replaceInFile": [],
"find.replaceInPath": [],
"run.rerun": [],
"debug.rerun": [],
"find.rerun": [],
"usages.rerun": [],
"debug.resume": ["F8"],
"run.run": ["Meta+Shift+F11"],
"debug.runToCursor": ["Meta+R"],
"code.showIntentions": ["Meta+1"],
"debug.smartStepInto": ["Alt+F5"],
"debug.stepInto": ["F5"],
"debug.forceStepInto": ["Meta+Ctrl+F5"],
"debug.stepOut": ["F7"],
"debug.stepOver": ["F6"],
"debug.forceStepOver": ["Meta+Ctrl+F6"],
"code.surroundWith": ["Meta+Alt+Z"],
// ⌥⌘Z is Surround With here, not the table editor's Revert.
"db.revertChanges": [],
"file.reloadFromDisk": [],
"project.reloadFromDisk": [],
"navigate.toggleBookmark": [],
"debug.toggleBreakpoint": ["Shift+Meta+B"],
"navigate.typeHierarchy": ["F4"],
"vcs.update": [],
"navigate.navigationBar": ["Alt+Meta+B"],
"code.moveLineDown": [],
"code.moveLineUp": [],
"code.cyclicExpandWord": ["Ctrl+."],
"code.cyclicExpandWordBackward": [],
"refactor.safeDelete": [],
"navigate.selectIn": ["Alt+Meta+W"],
"navigate.findAction": ["Meta+3"],
"vcs.rollback": ["Ctrl+Shift+Alt+Z"],
"toolwindow.project": [],
"toolwindow.bookmarks": [],
"toolwindow.find": ["Alt+Meta+Q S"],
"code.foldSelection": [],
"code.collapseBlock": [],
"navigate.showFilePath": [],
"toolwindow.services": ["Alt+Meta+H"],
"toolwindow.resizeLeft": [],
"toolwindow.resizeRight": [],
"toolwindow.resizeUp": [],
"toolwindow.resizeDown": [],
"editor.decreaseFontSize": ["Meta+-"],
"editor.increaseFontSize": ["Meta+="],
};