Changeset 8708


Ignore:
Timestamp:
03/05/05 00:46:03 (16 years ago)
Author:
piso
Message:

keyPressed(): honor user mapping for escape (keyboard-quit).

File:
1 edited

Legend:

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

    r8702 r8708  
    33 *
    44 * Copyright (C) 1998-2005 Peter Graves
    5  * $Id: IncrementalFindTextFieldHandler.java,v 1.7 2005-03-04 17:34:48 piso Exp $
     5 * $Id: IncrementalFindTextFieldHandler.java,v 1.8 2005-03-05 00:46:03 piso Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    7373        keyMap.addMappingsForCommand("findPrev", KeyMap.getGlobalKeyMap());
    7474        keyMap.addMappingsForCommand("findPrev", buffer.getKeyMapForMode());
     75        keyMap.addMappingsForCommand("escape", KeyMap.getGlobalKeyMap());
     76        keyMap.addMappingsForCommand("escape", buffer.getKeyMapForMode());
    7577    }
    7678
     
    165167                return;
    166168            }
     169            if (command == "escape") {
     170                // keyboard-quit
     171                escape();
     172                e.consume();
     173                return;
     174            }
    167175        }
    168176    }
Note: See TracChangeset for help on using the changeset viewer.