01: package isql;
02:
03: import java.awt.*;
04: import java.awt.event.*;
05: import javax.swing.*;
06: import javax.swing.text.*;
07:
08: public class KeyBindings {
09: public static final JTextComponent.KeyBinding[] defaultBindings = {
10: new JTextComponent.KeyBinding(KeyStroke
11: .getKeyStroke("control Z"), "submit-selected"),
12: new JTextComponent.KeyBinding(KeyStroke
13: .getKeyStroke("control S"), "run-selected"),
14: new JTextComponent.KeyBinding(KeyStroke
15: .getKeyStroke("alt 1"), "goto-input"),
16: new JTextComponent.KeyBinding(KeyStroke
17: .getKeyStroke("alt 2"), "goto-output"),
18: new JTextComponent.KeyBinding(KeyStroke
19: .getKeyStroke("alt 3"), "goto-history"),
20: new JTextComponent.KeyBinding(KeyStroke
21: .getKeyStroke("alt H"), "show-popup"),
22: new JTextComponent.KeyBinding(KeyStroke
23: .getKeyStroke("control R"), "run") };
24: }
|