mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-03 06:28:51 +00:00
Merge pull request #30 from Re-Ignited-Development/rockys-wishes
close phone on ESC - thank me later Rocky
This commit is contained in:
1 file changed
+7
@@ -21,6 +21,7 @@ import { useTwitterService } from "./apps/twitter/hooks/useTwitterService";
|
||||
import { useSelloutService } from "./apps/sellout/hooks/useSelloutService";
|
||||
import { useBankService } from './apps/bank/hooks/useBankService';
|
||||
import { useNotesService } from "./apps/notes/hooks/useNotesService";
|
||||
import Nui from "./os/nui-events/utils/Nui";
|
||||
|
||||
//These events are just for testing. Comment it out before building.
|
||||
setTimeout(() => {
|
||||
@@ -240,6 +241,12 @@ function Phone() {
|
||||
|
||||
const calling = false;
|
||||
|
||||
document.onkeyup = function(data) {
|
||||
if (data.which == 27) {
|
||||
Nui.send("phone:close");
|
||||
}
|
||||
}
|
||||
|
||||
return (
|
||||
<ThemeProvider theme={currentTheme()}>
|
||||
<div className="PhoneWrapper">
|
||||
|
||||
Reference in new issue
Block a user