Changeset 1203


Ignore:
Timestamp:
Jul 11, 2011, 7:59:13 PM (6 years ago)
Author:
stefan
Message:

allow to enter arbitrary UFF-8 characters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sce/component/SCEPaneUI.java

    r1181 r1203  
    161161    if (e.isConsumed()) return;
    162162
    163     if (allowedChars.indexOf(e.getKeyChar()) == -1) return;
     163    //if (allowedChars.indexOf(e.getKeyChar()) == -1) return;
    164164    if (e.isControlDown() || e.isAltDown() || e.isMetaDown()) return;
     165    if (Character.isISOControl(e.getKeyChar())) return;
    165166
    166167    if (document.hasSelection()) removeSelection();
     
    507508      ActionMap am = new ActionMap();
    508509      add(am, MOVE_VIEW_UP, MOVE_VIEW_UP_SHIFT, MOVE_VIEW_DOWN, MOVE_VIEW_DOWN_SHIFT,
    509         JUMP_LEFT, JUMP_LEFT_SHIFT, JUMP_RIGHT, JUMP_RIGHT_SHIFT, JUMP_TO_FRONT, JUMP_TO_FRONT_SHIFT, JUMP_TO_END_SHIFT,
     510        JUMP_LEFT, JUMP_LEFT_SHIFT, JUMP_RIGHT, JUMP_RIGHT_SHIFT, JUMP_TO_FRONT, JUMP_TO_FRONT_SHIFT, JUMP_TO_END, JUMP_TO_END_SHIFT,
    510511        REMOVE_LINE, REMOVE_LINE_BEFORE_CARET, REMOVE_LINE_BEHIND_CARET, REMOVE_WORD_BEFORE_CARET, REMOVE_WORD_BEHIND_CARET,
    511512        COMPLETE);
Note: See TracChangeset for help on using the changeset viewer.