1
0
mirror of https://github.com/chylex/IntelliJ-IdeaVim.git synced 2025-08-02 09:59:07 +02:00

Fix mapping for undo action

This commit is contained in:
Alex Plate 2019-09-17 14:42:11 +03:00
parent 6842936a75
commit 4f5301a7e0
No known key found for this signature in database
GPG Key ID: 0B97153C8FFEC09F

View File

@ -27,6 +27,9 @@ import com.maddyhome.idea.vim.helper.UndoRedoHelper;
import org.jetbrains.annotations.NotNull;
import javax.swing.*;
import java.awt.event.KeyEvent;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
@ -41,7 +44,10 @@ public class UndoAction extends VimActionHandler.SingleExecution {
@NotNull
@Override
public Set<List<KeyStroke>> getKeyStrokesSet() {
return parseKeysSet("u", "<Undo>");
Set<List<KeyStroke>> keys = new HashSet<>();
keys.add(Collections.singletonList(KeyStroke.getKeyStroke(KeyEvent.VK_U, 0)));
keys.add(Collections.singletonList(KeyStroke.getKeyStroke(KeyEvent.VK_UNDO, 0)));
return keys;
}
@NotNull