keep input

This commit is contained in:
Christopher committed 2021-04-16 09:10:10 +02:00
1 parent b14562eb9d
commit 1c69cd5e2e
3 files changed
+39 -2

No files matched your search

+4
View File
@@ -58,6 +58,7 @@ const showPhone = async (): Promise<void> => {
sendMessage('PHONE', PhoneEvents.SET_VISIBILITY, true);
sendMessage('PHONE', PhoneEvents.SET_TIME, time);
SetNuiFocus(true, true);
SetNuiFocusKeepInput(true);
};
const hidePhone = async (): Promise<void> => {
@@ -65,6 +66,7 @@ const hidePhone = async (): Promise<void> => {
sendMessage('PHONE', PhoneEvents.SET_VISIBILITY, false);
await phoneCloseAnim();
SetNuiFocus(false, false);
SetNuiFocusKeepInput(false);
};
/* * * * * * * * * * * * *
@@ -104,8 +106,10 @@ async function Phone(): Promise<void> {
}
if (isPhoneOpen) {
await hidePhone();
emit('npwd:disableEnableInput');
} else {
await showPhone();
emit('npwd:disableEnableInput');
}
}