Example usage for com.intellij.openapi.keymap MacKeymapUtil SHIFT

List of usage examples for com.intellij.openapi.keymap MacKeymapUtil SHIFT

Introduction

In this page you can find the example usage for com.intellij.openapi.keymap MacKeymapUtil SHIFT.

Prototype

String SHIFT

To view the source code for com.intellij.openapi.keymap MacKeymapUtil SHIFT.

Click Source Link

Usage

From source file:com.intellij.ide.actions.SearchEverywhereAction.java

License:Apache License

private static String getShortcut() {
    String shortcutText;//w  w  w.jav  a  2s.  c  om
    final Shortcut[] shortcuts = KeymapManager.getInstance().getActiveKeymap()
            .getShortcuts(IdeActions.ACTION_SEARCH_EVERYWHERE);
    if (shortcuts.length == 0) {
        shortcutText = "Double " + (SystemInfo.isMac ? MacKeymapUtil.SHIFT : "Shift");
    } else {
        shortcutText = KeymapUtil.getShortcutsText(shortcuts);
    }
    return shortcutText;
}