Prevent escape key from exiting full screen mode
This commit is contained in:
parent
79bc7a7c6e
commit
79fd3ca65c
|
@ -911,10 +911,12 @@ mac_toggle_fullscreen(void){
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
// NOTE(allen): Trying to figure out a way to stop the error bonk sound every time I use a key combo.
|
// NOTE(allen): Trying to figure out a way to stop the error bonk
|
||||||
// This stopped the sound as the docs suggested, but also stopped the key combo from being processed?
|
// sound every time I use a key combo. This stopped the sound as the
|
||||||
// Maybe put process_keyboard_event in there? But is this only sent for key downs? And why doesn't
|
// docs suggested, but also stopped the key combo from being processed?
|
||||||
// this block normal text input but only key combos??
|
// Maybe put process_keyboard_event in there? But is this only sent
|
||||||
|
// for key downs? And why doesn't this block normal text input but
|
||||||
|
// only key combos??
|
||||||
#if 1
|
#if 1
|
||||||
- (BOOL)performKeyEquivalent:(NSEvent *)event{
|
- (BOOL)performKeyEquivalent:(NSEvent *)event{
|
||||||
[self process_keyboard_event:event down:true];
|
[self process_keyboard_event:event down:true];
|
||||||
|
@ -922,6 +924,11 @@ mac_toggle_fullscreen(void){
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if 1
|
||||||
|
- (void)cancelOperation:(id)sender
|
||||||
|
{}
|
||||||
|
#endif
|
||||||
|
|
||||||
- (BOOL)acceptsFirstResponder{
|
- (BOOL)acceptsFirstResponder{
|
||||||
return(YES);
|
return(YES);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue