Changeset 8724


Ignore:
Timestamp:
03/06/05 16:28:17 (16 years ago)
Author:
piso
Message:

keyPressed(): call checkKeyboardQuit().

File:
1 edited

Legend:

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

    r3053 r8724  
    22 * MessageDialog.java
    33 *
    4  * Copyright (C) 1999-2003 Peter Graves
    5  * $Id: MessageDialog.java,v 1.3 2003-07-23 16:11:47 piso Exp $
     4 * Copyright (C) 1999-2005 Peter Graves
     5 * $Id: MessageDialog.java,v 1.4 2005-03-06 16:28:17 piso Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    8282    public void keyPressed(KeyEvent e)
    8383    {
     84        if (editor.checkKeyboardQuit(e)) {
     85            escape();
     86            return;
     87        }
    8488        if (e.getModifiers() == 0) {
    8589            switch (e.getKeyCode()) {
     
    8791                case KeyEvent.VK_SPACE:
    8892                    enter();
    89                     break;
     93                    return;
    9094                case KeyEvent.VK_ESCAPE:
    9195                    escape();
    92                     break;
     96                    return;
    9397            }
    9498        }
Note: See TracChangeset for help on using the changeset viewer.