mirror of
https://github.com/chylex/IntelliJ-IdeaVim.git
synced 2025-04-14 05:15:43 +02:00
Actions and Enter are broken in Rider...
This commit is contained in:
parent
51f15782af
commit
2643301ea9
src/main/java/com/maddyhome/idea/vim
@ -182,6 +182,9 @@ class VimShortcutKeyAction : AnAction(), DumbAware/*, LightEditCompatible*/ {
|
||||
}
|
||||
|
||||
if (editor.inInsertMode) {
|
||||
if (keyCode == KeyEvent.VK_ENTER) {
|
||||
return ActionEnableStatus.no("Enter action in insert mode", LogLevel.INFO)
|
||||
}
|
||||
if (keyCode == KeyEvent.VK_TAB) {
|
||||
// TODO: This stops VimEditorTab seeing <Tab> in insert mode and correctly scrolling the view
|
||||
// There are multiple actions registered for VK_TAB. The important items, in order, are this, the Live
|
||||
|
@ -38,6 +38,7 @@ import com.maddyhome.idea.vim.api.VimActionExecutor
|
||||
import com.maddyhome.idea.vim.api.VimEditor
|
||||
import com.maddyhome.idea.vim.command.OperatorArguments
|
||||
import com.maddyhome.idea.vim.handler.EditorActionHandlerBase
|
||||
import com.maddyhome.idea.vim.ide.isRider
|
||||
import com.maddyhome.idea.vim.newapi.IjNativeAction
|
||||
import com.maddyhome.idea.vim.newapi.ij
|
||||
import com.maddyhome.idea.vim.newapi.runFromVimKey
|
||||
@ -76,7 +77,7 @@ internal class IjActionExecutor : VimActionExecutor {
|
||||
}
|
||||
|
||||
val ijAction = (action as IjNativeAction).action
|
||||
if (Registry.`is`("ideavim.old.action.execution", true)) {
|
||||
if (Registry.`is`("ideavim.old.action.execution", true) || isRider()) {
|
||||
return manualActionExecution(context, ijAction)
|
||||
} else {
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user