jdk/src/macosx/native/sun/awt/AWTEvent.m
changeset 17144 0c7842966236
parent 13990 3e72145fd93a
child 18599 213883c7fab6
equal deleted inserted replaced
17143:8c04982f62b3 17144:0c7842966236
     1 /*
     1 /*
     2  * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   339     {NSShiftKeyMask,            NSBackTabCharacter,        NSTabCharacter},
   339     {NSShiftKeyMask,            NSBackTabCharacter,        NSTabCharacter},
   340 
   340 
   341     {0, 0, 0}
   341     {0, 0, 0}
   342 };
   342 };
   343 
   343 
   344 static unichar
   344 unichar NsCharToJavaChar(unichar nsChar, NSUInteger modifiers)
   345 NsCharToJavaChar(unichar nsChar, NSUInteger modifiers)
       
   346 {
   345 {
   347     const struct _char *cur;
   346     const struct _char *cur;
   348     // Mask off just the keyboard modifiers from the event modifier mask.
   347     // Mask off just the keyboard modifiers from the event modifier mask.
   349     NSUInteger testableFlags = (modifiers & ALL_NS_KEY_MODIFIERS_MASK);
   348     NSUInteger testableFlags = (modifiers & ALL_NS_KEY_MODIFIERS_MASK);
   350 
   349