Stop cursor from moving to end of word when touching text


Question

The default android behaviour when interacting with editable text seems to be to move the cursor to the end of the word you've touched, regardless of your touch location.



This is undesirable in many situations, e.g. if you have a stylus or a precise hand or a big screen and big text, or custom left and right arrows on your navigation bar, or a very long string without spaces.



Is there any way to prevent android from moving your cursor?


Answer

Future captain me here with an answer! Apparently this tap on word + cursor placement thing is not managed by the OS but by the keyboard app you use.



So here's a config that works great:




  1. Use Swiftkey keyboard.



The problem is Swiftkey sucks big time:




  • it doesn't solve the question's problem, which is a crime against human competence.

  • it always inserts a space after a period, making urls or "e.g." impossible to write.

  • it doesn't let you capitalize the next letter after space only after pressing space after the dot, ie if you weren't writing a url.

  • you keep accidentally tapping on dot instead of space while typing quickly and you can't change the layout.



The following steps will de-suck Swiftkey and solve all your keyboard problems:




  1. Root your device. Don't listen to your "parents". Best security is on rooted phones unless you're really unsavvy in which case it's just as bad as not rooting. (but for this you can unroot afterwards)


    • If you're concerned about Swiftkey privacy now you can install a firewall that blocks or monitors its internet access.


  2. Install the Android Xposed Framework and Xposed Installer (may not work (yet) on the latest version(s) of android) (needs root, but you can unroot after the install if you must).

  3. Download and install the "Exi for Swiftkey" Xposed module (github).



Just crawl through Exi's settings and you'll find the right checkboxes. It magically changes swiftkey's tap on words and other behaviours.



*flies away*


Topics


2D Engines   3D Engines   9-Patch   Action Bars   Activities   ADB   Advertisements   Analytics   Animations   ANR   AOP   API   APK   APT   Architecture   Audio   Autocomplete   Background Processing   Backward Compatibility   Badges   Bar Codes   Benchmarking   Bitmaps   Bluetooth   Blur Effects   Bread Crumbs   BRMS   Browser Extensions   Build Systems   Bundles   Buttons   Caching   Camera   Canvas   Cards   Carousels   Changelog   Checkboxes   Cloud Storages   Color Analysis   Color Pickers   Colors   Comet/Push   Compass Sensors   Conferences   Content Providers   Continuous Integration   Crash Reports   Credit Cards   Credits   CSV   Curl/Flip   Data Binding   Data Generators   Data Structures   Database   Database Browsers   Date &   Debugging   Decompilers   Deep Links   Dependency Injections   Design   Design Patterns   Dex   Dialogs   Distributed Computing   Distribution Platforms   Download Managers   Drawables   Emoji   Emulators   EPUB   Equalizers &   Event Buses   Exception Handling   Face Recognition   Feedback &   File System   File/Directory   Fingerprint   Floating Action   Fonts   Forms   Fragments   FRP   FSM   Functional Programming   Gamepads   Games   Geocaching   Gestures   GIF   Glow Pad   Gradle Plugins   Graphics   Grid Views   Highlighting   HTML   HTTP Mocking   Icons   IDE   IDE Plugins   Image Croppers   Image Loaders   Image Pickers   Image Processing   Image Views   Instrumentation   Intents   Job Schedulers   JSON   Keyboard   Kotlin   Layouts   Library Demos   List View   List Views   Localization   Location   Lock Patterns   Logcat   Logging   Mails   Maps   Markdown   Mathematics   Maven Plugins   MBaaS   Media   Menus   Messaging   MIME   Mobile Web   Native Image   Navigation   NDK   Networking   NFC   NoSQL   Number Pickers   OAuth   Object Mocking   OCR Engines   OpenGL   ORM   Other Pickers   Parallax List   Parcelables   Particle Systems   Password Inputs   PDF   Permissions   Physics Engines   Platforms   Plugin Frameworks   Preferences   Progress Indicators   ProGuard   Properties   Protocol Buffer   Pull To   Purchases   Push/Pull   QR Codes   Quick Return   Radio Buttons   Range Bars   Ratings   Recycler Views   Resources   REST   Ripple Effects   RSS   Screenshots   Scripting   Scroll Views   SDK   Search Inputs   Security   Sensors   Services   Showcase Views   Signatures   Sliding Panels   Snackbars   SOAP   Social Networks   Spannable   Spinners   Splash Screens   SSH   Static Analysis   Status Bars   Styling   SVG   System   Tags   Task Managers   TDD &   Template Engines   Testing   Testing Tools   Text Formatting   Text Views   Text Watchers   Text-to   Toasts   Toolkits For   Tools   Tooltips   Trainings   TV   Twitter   Updaters   USB   User Stories   Utils   Validation   Video   View Adapters   View Pagers   Views   Watch Face   Wearable Data   Wearables   Weather   Web Tools   Web Views   WebRTC   WebSockets   Wheel Widgets   Wi-Fi   Widgets   Windows   Wizards   XML   XMPP   YAML   ZIP Codes