Skip to content

Commit

Permalink
Fix MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
terrarier2111 committed Mar 13, 2024
1 parent e96c0e4 commit dc612a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -888,8 +888,8 @@ fn handle_window_event<T>(
(state, key) => {
let pressed = state == ElementState::Pressed;
#[cfg(target_os = "macos")]
if pressed && game.is_logo_pressed && key.eq_ignore_case('q') {
game.should_close = true;
if pressed && game.is_logo_pressed() && key.eq_ignore_case('q') {
game.set_should_close();
}
if !game.is_focused() {
let ctrl_pressed = game.is_ctrl_pressed()
Expand Down

0 comments on commit dc612a6

Please sign in to comment.