Your music, beautifully tracked. All yours. (coming soon) teal.fm
teal-fm atproto

Merge pull request #42 from teal-fm/teal-24

letting "Enter" submit some forms.

authored by

natalie and committed by
GitHub
903af4cf b34d5c27

+15 -1
+10
apps/amethyst/app/(tabs)/(stamp)/stamp/index.tsx
··· 75 75 onChangeText={(text) => 76 76 setSearchFields((prev) => ({ ...prev, track: text })) 77 77 } 78 + onKeyPress={(e) => { 79 + if (e.nativeEvent.key === "Enter") { 80 + handleSearch(); 81 + } 82 + }} 78 83 /> 79 84 <TextInput 80 85 className="p-2 border rounded-lg border-gray-300 bg-white" ··· 83 88 onChangeText={(text) => 84 89 setSearchFields((prev) => ({ ...prev, artist: text })) 85 90 } 91 + onKeyPress={(e) => { 92 + if (e.nativeEvent.key === "Enter") { 93 + handleSearch(); 94 + } 95 + }} 86 96 /> 87 97 <View className="flex-row gap-2"> 88 98 <Button
+5 -1
apps/amethyst/app/auth/login.tsx
··· 8 8 import { Input } from "@/components/ui/input"; 9 9 import { cn } from "@/lib/utils"; 10 10 import { Link, Stack, router } from "expo-router"; 11 - 12 11 import { useStore } from "@/stores/mainStore"; 13 12 import { openAuthSessionAsync } from "expo-web-browser"; 14 13 ··· 83 82 onChangeText={setHandle} 84 83 autoCapitalize="none" 85 84 autoCorrect={false} 85 + onKeyPress={(e) => { 86 + if (e.nativeEvent.key === "Enter") { 87 + handleLogin(); 88 + } 89 + }} 86 90 /> 87 91 {err ? ( 88 92 <Text className="text-red-500 justify-baseline mt-1 text-xs">