Exemplo n.º 1
0
 public void register(
     int m1,
     int k1,
     int m2,
     int k2,
     AppCommand command,
     String groupName,
     String title,
     String disableModes) {
   KeySequence sequence = new KeySequence();
   sequence.add(k1, m1);
   sequence.add(k2, m2);
   register(sequence, command, groupName, title, disableModes);
 }
Exemplo n.º 2
0
  private void updateKeyPrefixes(KeySequence keys) {
    if (keys.size() <= 1) return;

    KeySequence prefixes = new KeySequence();
    for (int i = 0; i < keys.size() - 1; i++) {
      prefixes.add(keys.get(i));
      prefixes_.add(prefixes.clone());
    }
  }