Add input-focus support for System 7, where the Control Manager can't do
[u/mdw/putty] / mac / mac.h
index 0e74781..d453de7 100644 (file)
--- a/mac/mac.h
+++ b/mac/mac.h
@@ -70,11 +70,13 @@ typedef struct {
 union macctrl;
 
 struct macctrls {
+    WindowPtr          window;
     tree234            *byctrl;
     void               *data; /* private data for config box */
     unsigned int       npanels;
     unsigned int       curpanel;
     union macctrl      **panels; /* lists of controls by panel */
+    union macctrl      *focus; /* Input focus for System 7 */
 };    
 
 typedef struct Session {
@@ -201,6 +203,7 @@ extern void macctrl_layoutbox(struct controlbox *, WindowPtr,
                              struct macctrls *);
 extern void macctrl_activate(WindowPtr, EventRecord *);
 extern void macctrl_click(WindowPtr, EventRecord *);
+extern void macctrl_key(WindowPtr, EventRecord *);
 extern void macctrl_update(WindowPtr);
 extern void macctrl_adjustmenus(WindowPtr);
 extern void macctrl_close(WindowPtr);