IJPL-165241: vcs marker: Add a shortcut for committing chunk action

(cherry picked from commit 31c9bfe2a6af44a2b7bd439732a0060a6a3a8e55)

IJ-CR-149651

GitOrigin-RevId: bb58848763ed3fa5af1f1485d43e0bb7070ce564
This commit is contained in:
Aleksandr Krasilnikov
2024-11-07 15:19:53 +01:00
committed by intellij-monorepo-bot
parent 633ffa3474
commit a2ff5e6b79

View File

@@ -63,6 +63,8 @@ private class CommitChunkPanel(private val tracker: ChangelistsLocalLineStatusTr
override fun actionPerformed(e: AnActionEvent) {
executorEventDispatcher.multicaster.executorCalled(null)
}
}.apply {
registerCustomShortcutSet(CommonShortcuts.getCtrlEnter(), this@CommitChunkPanel, this@CommitChunkPanel)
}
private val amendCommitToggle = object : ToggleAction(VcsBundle.message("checkbox.amend") , null, PlatformVcsImplIcons.AmendInline) {