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. Advertisements

  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. Advertisements

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:
    3,180
    kinkeads
    Jan 27, 2011
  2. Julien ROUZIERES

    g++ -pg option and -shared option

    Julien ROUZIERES, Dec 21, 2004, in forum: C++
    Replies:
    1
    Views:
    1,050
    GianGuz
    Dec 21, 2004
  3. Cas
    Replies:
    5
    Views:
    1,017
    Kevin Jones
    Aug 28, 2006
  4. Kevin Blount

    page.aspx?option - how to detect "option"

    Kevin Blount, Nov 28, 2006, in forum: ASP .Net
    Replies:
    6
    Views:
    809
    =?Utf-8?B?RWVyYWo=?=
    Nov 28, 2006
  5. M P
    Replies:
    1
    Views:
    828
  6. John

    Regex for <option> ... </option>

    John, Jan 23, 2009, in forum: Perl Misc
    Replies:
    10
    Views:
    468
    Eric Pozharski
    Jan 29, 2009
  7. Mark Kolber
    Replies:
    4
    Views:
    585
  8. Replies:
    7
    Views:
    437
Loading...