Example usage for com.intellij.openapi.keymap Keymap removeShortcut

List of usage examples for com.intellij.openapi.keymap Keymap removeShortcut

Introduction

In this page you can find the example usage for com.intellij.openapi.keymap Keymap removeShortcut.

Prototype

void removeShortcut(@NotNull String actionId, @NotNull Shortcut shortcut);

Source Link

Usage

From source file:com.android.tools.idea.AndroidInitialConfigurator.java

License:Apache License

@Nullable
private static KeyboardShortcut removeFirstKeyboardShortcut(Keymap keymap, String actionId) {
    Shortcut[] shortcuts = keymap.getShortcuts(actionId);
    for (Shortcut each : shortcuts) {
        if (each instanceof KeyboardShortcut) {
            keymap.removeShortcut(actionId, each);
            return (KeyboardShortcut) each;
        }//from   w  w  w . j  a v  a2 s . c om
    }

    return null;
}