Merge pull request #643 from Fam0r/master

Make keypad enter behave like the enter key in the launcher
This commit is contained in:
UnknownShadow200 2020-04-13 19:07:33 +10:00 committed by GitHub
commit c4e84d4ed9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -96,7 +96,7 @@ static void LScreen_HandleTab(struct LScreen* s) {
static void LScreen_KeyDown(struct LScreen* s, int key, cc_bool was) {
if (key == KEY_TAB) {
LScreen_HandleTab(s);
} else if (key == KEY_ENTER) {
} else if (key == KEY_ENTER || key == KEY_KP_ENTER) {
/* Shouldn't multi click when holding down Enter */
if (was) return;