about summary refs log tree commit diff
path: root/src/lib/browser.native.ts
diff options
context:
space:
mode:
authorHailey <me@haileyok.com>2024-05-23 19:45:50 -0700
committerGitHub <noreply@github.com>2024-05-23 19:45:50 -0700
commit85782aeb930b63995d83157f581f66e564743626 (patch)
tree86a82c3fa0e163961cbc7002c63c2e6033111474 /src/lib/browser.native.ts
parentfa039e542d06c2e9e24f46464b18256aa0f10b7f (diff)
downloadvoidsky-85782aeb930b63995d83157f581f66e564743626.tar.zst
[🐴] Don't submit the message on return press when on a phone (web input) (#4203)
move this to the `onKeyDown` prop

Revert "do the same for tablets"

This reverts commit 47c709e2734f2acf34f89dd5aca42a75a2b56270.

do the same for tablets

don't submit message if the device is a phone on web

move `onTouchStart` to `browser.ts` globals
Diffstat (limited to 'src/lib/browser.native.ts')
-rw-r--r--src/lib/browser.native.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/browser.native.ts b/src/lib/browser.native.ts
index 3ac238b94..fb9be56f1 100644
--- a/src/lib/browser.native.ts
+++ b/src/lib/browser.native.ts
@@ -1,2 +1,3 @@
 export const isSafari = false
 export const isFirefox = false
+export const isTouchDevice = true