A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
handle ios keyboard focusing
ammarahm-ed603b1347cf72
diff --git a/apps/mobile/src/views/Editor/Functions.js b/apps/mobile/src/views/Editor/Functions.jsindex e18831f3f..21db21fb6 100644--- a/apps/mobile/src/views/Editor/Functions.js+++ b/apps/mobile/src/views/Editor/Functions.js@@ -153,9 +153,13 @@ export async function loadNote(item) {intent = false;noteEdited = false;id = null;- textInput.current?.focus();- post('focusTitle');- Platform.OS === 'android' ? EditorWebView.current?.requestFocus() : null;+ if (Platform.OS === "android") {+ textInput.current?.focus();+ post('focusTitle');+ EditorWebView.current?.requestFocus()+ } else {+ post('focusTitle');+ }} else if (item && item.type === 'intent') {await clearEditor();clearNote();diff --git a/apps/mobile/src/views/Editor/index.js b/apps/mobile/src/views/Editor/index.jsindex f555ebe20..fb05acaa5 100755--- a/apps/mobile/src/views/Editor/index.js+++ b/apps/mobile/src/views/Editor/index.js@@ -53,6 +53,8 @@ const Editor = ({noMenu}) => {onError={(error) => console.log(error)}onLoad={async () => await onWebViewLoad(noMenu, premiumUser, colors)}javaScriptEnabled={true}+ focusable={true}+ keyboardDisplayRequiresUserAction={false}injectedJavaScript={Platform.OS === 'ios' ? injectedJS : null}onShouldStartLoadWithRequest={_onShouldStartLoadWithRequest}renderLoading={() => (