--(IBAction)radioChanged:(id)sender {
- [[[NSApplication sharedApplication] mainWindow] makeFirstResponder: sender];
+
+- (IBAction)radioChanged:(id)sender {
+ NSInteger row, col;
+ [radioButtons getRow:&row column:&col ofCell:sender];
+ [[NSApplication sharedApplication].mainWindow makeFirstResponder:sender];
+
+ if (row != 1)
+ keyInput.vk = -1;
+
+ if (row != 2)
+ [configPopup selectItemAtIndex:-1];
+ else if (!configPopup.selectedItem)
+ [configPopup selectItemAtIndex:0];
+
+ if (row != 3)
+ mouseDirSelect.selectedSegment = -1;
+ else if (mouseDirSelect.selectedSegment == -1)
+ mouseDirSelect.selectedSegment = 0;
+
+ if (row != 4)
+ mouseBtnSelect.selectedSegment = -1;
+ else if (mouseBtnSelect.selectedSegment == -1)
+ mouseBtnSelect.selectedSegment = 0;
+
+ if (row != 5)
+ scrollDirSelect.selectedSegment = -1;
+ else if (scrollDirSelect.selectedSegment == -1)
+ scrollDirSelect.selectedSegment = 0;
+