Skip to content

Commit

Permalink
feat: add compatibility with enter search mod (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
iswilljr authored Jul 22, 2024
1 parent 9cc5704 commit 392cddb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1385,6 +1385,14 @@ struct BetterCCEGLView : Modify<BetterCCEGLView, CCEGLView>
break;
}
}

if (
!BI::platform::keyDown(BI::PlatformKey::LEFT_SHIFT) &&
!BI::platform::keyDown(BI::PlatformKey::LEFT_CONTROL) &&
key == GLFW_KEY_ENTER
) {
return CCEGLView::onGLFWKeyCallback(window, key, scancode, action, mods);
}
}
}

Expand Down

0 comments on commit 392cddb

Please sign in to comment.