Skip to content

Commit 5b9c590

Browse files
author
GH Action
committed
1 parent 80bc694 commit 5b9c590

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/sokol/c/sokol_app.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4482,6 +4482,21 @@ static void _sapp_gl_make_current(void) {
44824482
}
44834483
}
44844484
}
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+
44854500
- (void)keyUp:(NSEvent*)event {
44864501
_sapp_gl_make_current();
44874502
_sapp_macos_key_event(SAPP_EVENTTYPE_KEY_UP,

0 commit comments

Comments
 (0)