Ignore:
Timestamp:
11/17/2007 12:40:30 AM (19 years ago)
Author:
David Owen <dsowen@…>
branch-nick:
tui
revision id:
dsowen@fugue88.ws-20071117004030-ov0o4jfbzl3b9vup
Message:

Allow for other callback-functions on ACTIVATE.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/widget/textbox.lisp

    r46 r63  
    8989
    9090
    91 (defmethod activate ((textbox textbox) &optional (callback 'nothing))
     91(defmethod activate ((textbox textbox) &key (key-callback 'nothing)
     92                     &allow-other-keys)
    9293  (with-slots (data window active) textbox
    9394    (setf active t)
     
    119120                   (if (or (keywordp key)
    120121                           (member key '(#\Return #\Newline #\Tab #\Esc)))
    121                        (let ((r (funcall callback key)))
     122                       (let ((r (funcall key-callback key)))
    122123                         (when r
    123124                           (setf (insertion-point textbox) 0)
Note: See TracChangeset for help on using the changeset viewer.