Example usage for javax.swing.plaf InputMapUIResource remove

List of usage examples for javax.swing.plaf InputMapUIResource remove

Introduction

In this page you can find the example usage for javax.swing.plaf InputMapUIResource remove.

Prototype

public void remove(KeyStroke key) 

Source Link

Document

Removes the binding for key from this InputMap .

Usage

From source file:com.haulmont.cuba.desktop.App.java

protected void initLookAndFeelDefaults() {
    InputMapUIResource inputMap = (InputMapUIResource) UIManager.getLookAndFeelDefaults()
            .get("FormattedTextField.focusInputMap");
    inputMap.remove(KeyStroke.getKeyStroke("ESCAPE"));
}