File diff r25654:e264fd698eb2 → r25655:1030dcb7eb52
src/video/cocoa/cocoa_wnd.mm
Show inline comments
 
@@ -273,7 +273,7 @@ bool CocoaSetupApplication()
 

	
 
	/* Tell the dock about us */
 
	OSStatus returnCode = TransformProcessType(&psn, kProcessTransformToForegroundApplication);
 
	if (returnCode != 0) DEBUG(driver, 0, "Could not change to foreground application. Error %d", (int)returnCode);
 
	if (returnCode != 0) Debug(driver, 0, "Could not change to foreground application. Error {}", (int)returnCode);
 

	
 
	/* Disable the system-wide tab feature as we only have one window. */
 
	if ([ NSWindow respondsToSelector:@selector(setAllowsAutomaticWindowTabbing:) ]) {
 
@@ -700,9 +700,9 @@ void CocoaDialog(const char *title, cons
 
		if (!EditBoxInGlobalFocus() || IsInsideMM(pressed_key & ~WKC_SPECIAL_KEYS, WKC_F1, WKC_PAUSE + 1)) {
 
			HandleKeypress(pressed_key, unicode);
 
		}
 
		DEBUG(driver, 3, "cocoa_v: QZ_KeyEvent: %x (%x), down, mapping: %x", keycode, unicode, pressed_key);
 
		Debug(driver, 3, "cocoa_v: QZ_KeyEvent: {:x} ({:x}), down, mapping: {:x}", keycode, (int)unicode, pressed_key);
 
	} else {
 
		DEBUG(driver, 3, "cocoa_v: QZ_KeyEvent: %x (%x), up", keycode, unicode);
 
		Debug(driver, 3, "cocoa_v: QZ_KeyEvent: {:x} ({:x}), up", keycode, (int)unicode);
 
	}
 

	
 
	return interpret_keys;