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

add pressing enter to search

authored by mmatt.net and committed by

Natalie B. f9860133 2e6f0f1a

+10
+10
apps/amethyst/app/(tabs)/(stamp)/stamp/index.tsx
··· 76 76 onChangeText={(text) => 77 77 setSearchFields((prev) => ({ ...prev, track: text })) 78 78 } 79 + onKeyPress={(e) => { 80 + if (e.nativeEvent.key === "Enter") { 81 + handleSearch(); 82 + } 83 + }} 79 84 /> 80 85 <TextInput 81 86 className="p-2 border rounded-lg border-gray-300 bg-white" ··· 84 89 onChangeText={(text) => 85 90 setSearchFields((prev) => ({ ...prev, artist: text })) 86 91 } 92 + onKeyPress={(e) => { 93 + if (e.nativeEvent.key === "Enter") { 94 + handleSearch(); 95 + } 96 + }} 87 97 /> 88 98 <View className="flex-row gap-2"> 89 99 <Button