option-<key> in jEdit Syntax Package

Discussion in 'Java' started by fxn@hashref.com, Dec 10, 2004.

  1. Guest

    We are using the jEdit Syntax Package (http://syntax.jedit.org) to
    provide an editor with Python syntax highlighting in a Java/Jython
    application.

    The component works like a charm, but we've found that option-<key>
    does no work on Mac OS X. This is important to for us because in UK
    keyboards you need such a combo to enter "#", and in Spanish keyboards
    it is used to enter "[", "]", "{", "}", "#", and a few more.

    JEditTextArea is a direct subclass of JComponent and I have no clue how
    to approach this. Does anybody know how could we fix that?

    -- fxn
    , Dec 10, 2004
    #1
    1. Advertising

  2. Guest

    For the archives, I founded it.

    In the method keyTyped of DefaultInputHandler.java there's this
    suspicious

    if(c != KeyEvent.CHAR_UNDEFINED &&
    (modifiers & KeyEvent.ALT_MASK) == 0)

    I just commented out the second condition. Nothing seems broken by now.
    -- fxn
    , Dec 13, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Axel Friedrich

    VHDL-plugin for jedit sidekick?

    Axel Friedrich, Jun 21, 2005, in forum: VHDL
    Replies:
    11
    Views:
    2,790
    kinkeads
    Jan 27, 2011
  2. Thomas G. Marshall
    Replies:
    5
    Views:
    787
    Thomas G. Marshall
    Aug 6, 2004
  3. Jason

    Building jEdit w/ JDK 1.3

    Jason, Feb 10, 2005, in forum: Java
    Replies:
    2
    Views:
    548
    Amir Michail
    Feb 11, 2005
  4. jEdit JavaDebugger

    , Jan 29, 2006, in forum: Java
    Replies:
    0
    Views:
    363
  5. M P
    Replies:
    1
    Views:
    456
Loading...

Share This Page