Changeset 4967


Ignore:
Timestamp:
12/04/03 16:55:03 (18 years ago)
Author:
piso
Message:

isComponentHookable(): incremental find textfield is not hookable.

File:
1 edited

Legend:

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

    r2645 r4967  
    33 *
    44 * Copyright (C) 1999-2003 Peter Graves
    5  * $Id: CustomFocusManager.java,v 1.6 2003-06-28 15:42:10 piso Exp $
     5 * $Id: CustomFocusManager.java,v 1.7 2003-12-04 16:55:03 piso Exp $
    66 *
    77 * This program is free software; you can redistribute it and/or
     
    4444                    keyText = "\\\\";
    4545                Editor.invokeHook("key-pressed-hook",
    46                     "\"" + keyText + "\"");
     46                                  "\"" + keyText + "\"");
    4747            }
    4848        }
     
    5656        if (c == null)
    5757            return false;
     58        if (c instanceof HistoryTextField) {
     59            HistoryTextField textField = (HistoryTextField) c;
     60            if (textField.getHandler() instanceof IncrementalFindTextFieldHandler)
     61                return false;
     62        }
    5863        if (!Editor.preferences().getBooleanProperty(Property.ENABLE_KEY_PRESSED_HOOK))
    5964            return false;
Note: See TracChangeset for help on using the changeset viewer.