mirror of
https://github.com/chylex/IntelliJ-IdeaVim.git
synced 2025-08-08 00:40:37 +02:00
Add explanatory comment about InsertExitModeAction
This commit is contained in:
parent
98ca4080dd
commit
d112030a8e
@ -14,6 +14,9 @@ import com.maddyhome.idea.vim.command.OperatorArguments
|
||||
import com.maddyhome.idea.vim.handler.VimActionHandler
|
||||
|
||||
public class InsertExitModeAction : VimActionHandler.SingleExecution() {
|
||||
// Note that hitting Escape can insert text when exiting insert mode after visual block mode.
|
||||
// If the editor is read-only, we'll get a "This view is read-only" tooltip. However, we should only enter insert
|
||||
// mode if both editor and document are writable.
|
||||
override val type: Command.Type = Command.Type.INSERT
|
||||
|
||||
override fun execute(editor: VimEditor, context: ExecutionContext, cmd: Command, operatorArguments: OperatorArguments): Boolean {
|
||||
|
Loading…
Reference in New Issue
Block a user