Merge pull request #212 from project-error/feat/keep-input

This commit is contained in:
Christopher Gjelten authored and GitHub committed 2021-05-14 02:29:37 +02:00
commit 951ed914d5
3 files changed
+50 -2

No files matched your search

+4
View File
@@ -57,6 +57,8 @@ const showPhone = async (): Promise<void> => {
sendMessage('PHONE', PhoneEvents.SET_VISIBILITY, true);
sendMessage('PHONE', PhoneEvents.SET_TIME, time);
SetNuiFocus(true, true);
SetNuiFocusKeepInput(true);
emit('npwd:disableControlActions', true);
};
const hidePhone = async (): Promise<void> => {
@@ -64,6 +66,8 @@ const hidePhone = async (): Promise<void> => {
sendMessage('PHONE', PhoneEvents.SET_VISIBILITY, false);
await phoneCloseAnim();
SetNuiFocus(false, false);
SetNuiFocusKeepInput(false);
emit('npwd:disableControlActions', false);
};
/* * * * * * * * * * * * *