We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80bc694 commit 5b9c590Copy full SHA for 5b9c590
src/sokol/c/sokol_app.h
@@ -4482,6 +4482,21 @@ static void _sapp_gl_make_current(void) {
4482
}
4483
4484
4485
+
4486
+- (BOOL)performKeyEquivalent:(NSEvent*)event {
4487
+ // fixes Ctrl-Tab keydown not triggering a keyDown event
4488
+ //
4489
+ // NOTE: it seems that Ctrl-F1 cannot be intercepted the same way, but since
4490
+ // this enabled critical accessibility features that's probably a good thing.
4491
+ switch (_sapp_translate_key(event.keyCode)) {
4492
+ case SAPP_KEYCODE_TAB:
4493
+ [_sapp.macos.view keyDown:event];
4494
+ return YES;
4495
+ default:
4496
+ return NO;
4497
+ }
4498
+}
4499
4500
- (void)keyUp:(NSEvent*)event {
4501
_sapp_gl_make_current();
4502
_sapp_macos_key_event(SAPP_EVENTTYPE_KEY_UP,
0 commit comments