Changeset 1163


Ignore:
Timestamp:
Jul 4, 2011, 7:36:05 PM (6 years ago)
Author:
stefan
Message:

shortcut for completion (control+space) can be configure in global.settings

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/CHANGELOG

    r1161 r1163  
    77
    88
    9 == Version 0.2 ==
     9== Version 0.2.1 ==
     10
     11* minor enhancements:
     12  - colored highlighting of LaTeX errors and warnings in corresponding lists
     13  - continuously comments
     14  - shortcut for completion (control+space) can be configure in global.settings
     15* bug fixes:
     16  - fixed error in deb package which caused exceptions in open dialog
     17
     18
     19== Version 0.2.0 ==
    1020
    1121* new features:
  • trunk/src/jlatexeditor/JLatexEditorJFrame.java

    r1152 r1163  
    324324    createShortcut(this, RECEIVER_PANE_UI, "remove word before caret", false);
    325325    createShortcut(this, RECEIVER_PANE_UI, "remove word behind caret", false);
     326    createShortcut(this, RECEIVER_PANE_UI, "complete", false);
    326327
    327328    // prevent that TabbledPane consumes the "control UP"
  • trunk/src/jlatexeditor/gproperties/GProperties.java

    r1162 r1163  
    200200    properties.addEntry(new Def("shortcut.remove word before caret", SHORTCUT, "control BACK_SPACE"));
    201201    properties.addEntry(new Def("shortcut.remove word behind caret", SHORTCUT, "control DELETE"));
     202    properties.addEntry(new Def("shortcut.complete", SHORTCUT, "control SPACE"));
    202203
    203204    properties.addEntry(new Comment(" Focus Traversal"));
  • trunk/src/sce/codehelper/CodeHelperPane.java

    r1154 r1163  
    215215    //int column = caret.getColumn();
    216216
    217     // control+space
    218     if (e.getKeyCode() == KeyEvent.VK_SPACE && e.isControlDown() && !isVisible()) {
    219       callCodeHelperWithCompletion();
    220 
    221       e.consume();
    222     }
    223 
    224217    // TODO: move somewhere else
    225218    /*
     
    362355  }
    363356
    364   void callCodeHelperWithCompletion() {
     357  public void callCodeHelperWithCompletion() {
    365358    if (popup.isVisible()) return;
    366359
  • trunk/src/sce/component/SCEPaneUI.java

    r1143 r1163  
    435435      clearSelection();
    436436    }
     437    if (command.equals("complete")) { // control+delete
     438      if (codeHelperPane != null) {
     439        codeHelperPane.callCodeHelperWithCompletion();
     440      }
     441    }
    437442  }
    438443
Note: See TracChangeset for help on using the changeset viewer.