Skip to content

Commit

Permalink
add alttabfix courtesy of hjfod
Browse files Browse the repository at this point in the history
  • Loading branch information
cgytrus committed May 9, 2024
1 parent 1ea00f5 commit c862604
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/AltTabFix.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#include <cocos2d.h>
#include <Geode/modify/AppDelegate.hpp>

#ifdef GEODE_IS_WINDOWS
class $modify(AppDelegate) {
void applicationWillEnterForeground() {
AppDelegate::applicationWillEnterForeground();
cocos2d::CCDirector::get()->getKeyboardDispatcher()->updateModifierKeys(false, false, false, false);
}
};
#endif

0 comments on commit c862604

Please sign in to comment.