1
0
mirror of https://github.com/chylex/IntelliJ-IdeaVim.git synced 2025-05-03 22:34:03 +02:00

Fix the issue that backspace key was not working in the code review comments for GitHub

The context component should be detected automatically
This commit is contained in:
Alex Plate 2025-03-07 16:48:32 +02:00
parent e7d47fd7f3
commit 393d2d4353
No known key found for this signature in database
GPG Key ID: 0B97153C8FFEC09F

View File

@ -87,7 +87,11 @@ internal class IjActionExecutor : VimActionExecutor {
} else {
try {
isRunningActionFromVim = true
val res = ActionManager.getInstance().tryToExecute(ijAction, null, editor?.ij?.component, "IdeaVim", true)
// DataContext is build on the context component.
// However, it should be null as in this case the data context is taken from the context and the
// PlatformDataKeys.EDITOR is properly set.
val contextComponent: Component? = null
val res = ActionManager.getInstance().tryToExecute(ijAction, null, contextComponent, "IdeaVim", true)
res.waitFor(5_000)
return res.isDone
} finally {