- Timestamp:
- 11/07/2007 05:12:27 AM (19 years ago)
- branch-nick:
- tui-new
- revision id:
- dsowen@fugue88.ws-20071107051227-wbmsan3mivf9n3qg
- File:
-
- 1 edited
-
main/textbox.lisp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
main/textbox.lisp
r36 r37 41 41 (erase window) 42 42 (add-clipped-string window 0 (- scroll) (text data)) 43 (setf (cursor-position window) (list 0 (screen-cp textbox))))) 43 (setf (cursor-position window) (list 0 (screen-cp textbox))) 44 (refresh window))) 44 45 45 46 (defmethod (setf insertion-point) :around (i (textbox textbox)) … … 113 114 (t 114 115 (if (or (keywordp key) (member key '(#\Return #\Tab #\Esc))) 115 (when (funcall callback key) 116 (setf (insertion-point textbox) 0) 117 (return-from activate-textbox)) 116 (let ((r (funcall callback key))) 117 (when r 118 (setf (insertion-point textbox) 0) 119 (return-from activate-textbox r))) 118 120 (multiple-value-bind (left right) (split textbox) 119 121 (setf (text data)
Note: See TracChangeset
for help on using the changeset viewer.
