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
reset selection on note clearing
ammarahm-ed82881b7f78ac
diff --git a/apps/mobile/android/app/src/main/assets/listeners.js b/apps/mobile/android/app/src/main/assets/listeners.jsindex 4dd8f8f69..bd7b85065 100644--- a/apps/mobile/android/app/src/main/assets/listeners.js+++ b/apps/mobile/android/app/src/main/assets/listeners.js@@ -192,6 +192,7 @@ function attachMessageListener() {}switch (type) {case 'reset': {+ editor.setSelection(0,0,'user');editor.history.clear();editor.setText('', 'api');document.getElementById(titleInput).value = '';@@ -256,6 +257,7 @@ function attachMessageListener() {break;case 'clearEditor':+ editor.setSelection(0,0,'user');editor.setText('', 'api');break;case 'clearTitle':diff --git a/apps/mobile/html/Web.bundle/site/listeners.js b/apps/mobile/html/Web.bundle/site/listeners.jsindex d0fcfadc3..7b472a881 100644--- a/apps/mobile/html/Web.bundle/site/listeners.js+++ b/apps/mobile/html/Web.bundle/site/listeners.js@@ -194,6 +194,7 @@ function attachMessageListener() {}switch (type) {case 'reset': {+ editor.setSelection(0,0,'user');editor.history.clear();editor.setText('', 'api');document.getElementById(titleInput).value = '';@@ -259,6 +260,7 @@ function attachMessageListener() {break;case 'clearEditor':+ editor.setSelection(0,0,'user');editor.setText('', 'api');break;case 'clearTitle':