tdevdraw: abort alt sequence on window change on macOS - plan9port - [fork] Plan 9 from user space
 (HTM) git clone git://src.adamsgaard.dk/plan9port
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 1d0d432ccb000b28de3309db5f8299357a46c903
 (DIR) parent 23a23689807560ee80806a339be0f7e7cef6340d
 (HTM) Author: Russ Cox <rsc@swtch.com>
       Date:   Thu, 16 Jan 2020 12:07:42 -0500
       
       devdraw: abort alt sequence on window change on macOS
       
       Fixes #3.
       
       Diffstat:
         M src/cmd/devdraw/mac-screen.m        |       4 ++++
       
       1 file changed, 4 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/src/cmd/devdraw/mac-screen.m b/src/cmd/devdraw/mac-screen.m
       t@@ -560,6 +560,10 @@ rpc_resizewindow(Client *c, Rectangle r)
                [self sendmouse:0];
        }
        
       +- (void)windowDidResignKey:(id)arg {
       +        gfx_abortcompose(self.client);
       +}
       +
        - (void)mouseMoved:(NSEvent*)e{ [self getmouse:e];}
        - (void)mouseDown:(NSEvent*)e{ [self getmouse:e];}
        - (void)mouseDragged:(NSEvent*)e{ [self getmouse:e];}