Changeset 8673


Ignore:
Timestamp:
03/01/05 20:22:19 (16 years ago)
Author:
piso
Message:

getKeyStroke(): treat a keyText string of length 1 like a character.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/j/src/org/armedbear/j/Utilities.java

    r8594 r8673  
    33 *
    44 * Copyright (C) 1998-2005 Peter Graves
    5  * $Id: Utilities.java,v 1.38 2005-02-16 21:41:19 piso Exp $
     5 * $Id: Utilities.java,v 1.39 2005-03-01 20:22:19 piso Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    14661466            return KeyStroke.getKeyStroke(keyText.charAt(1));
    14671467        }
     1468        if (keyText.length() == 1)
     1469            return KeyStroke.getKeyStroke(keyText.charAt(0));
    14681470        int modifiers = 0;
    14691471        while (true) {
Note: See TracChangeset for help on using the changeset viewer.