Example usage for com.intellij.openapi.keymap KeymapManager addKeymapManagerListener

List of usage examples for com.intellij.openapi.keymap KeymapManager addKeymapManagerListener

Introduction

In this page you can find the example usage for com.intellij.openapi.keymap KeymapManager addKeymapManagerListener.

Prototype

@Deprecated
public abstract void addKeymapManagerListener(@NotNull KeymapManagerListener listener);

Source Link

Usage

From source file:com.intellij.ui.switcher.QuickAccessSettings.java

License:Apache License

public void initComponent() {
    myModifiersValue = Registry.get("actionSystem.quickAccessModifiers");
    myModifiersValue.addListener(new RegistryValueListener.Adapter() {
        public void afterValueChanged(RegistryValue value) {
            applyModifiersFromRegistry();
        }//  w ww  . j a v  a 2  s. c om
    }, this);

    KeymapManager kmMgr = KeymapManager.getInstance();
    kmMgr.addKeymapManagerListener(this);

    activeKeymapChanged(kmMgr.getActiveKeymap());

    applyModifiersFromRegistry();
}