diff --git a/phone/src/Phone.tsx b/phone/src/Phone.tsx index b6bc26c..aeb90bb 100644 --- a/phone/src/Phone.tsx +++ b/phone/src/Phone.tsx @@ -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 (