comparison mac/dw.m @ 1807:d7447c814f8b

Fix for selecting radio buttons with the keyboard on Mac.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 05 Oct 2012 20:23:29 +0000
parents eecf0eb609d8
children f3458cd6277c
comparison
equal deleted inserted replaced
1806:eecf0eb609d8 1807:d7447c814f8b
1029 unichar vk = [[theEvent charactersIgnoringModifiers] characterAtIndex:0]; 1029 unichar vk = [[theEvent charactersIgnoringModifiers] characterAtIndex:0];
1030 if(vk == VK_RETURN || vk == VK_SPACE) 1030 if(vk == VK_RETURN || vk == VK_SPACE)
1031 { 1031 {
1032 if(buttonType == NSSwitchButton) 1032 if(buttonType == NSSwitchButton)
1033 [self setState:([self state] ? NSOffState : NSOnState)]; 1033 [self setState:([self state] ? NSOffState : NSOnState)];
1034 else if(buttonType == NSRadioButton)
1035 [self setState:NSOnState];
1034 [self buttonClicked:self]; 1036 [self buttonClicked:self];
1035 } 1037 }
1036 else 1038 else
1037 { 1039 {
1038 [self interpretKeyEvents:[NSArray arrayWithObject:theEvent]]; 1040 [self interpretKeyEvents:[NSArray arrayWithObject:theEvent]];