Skip to content

PDF Mobile: Autofocusing Text annotation edit field and showing soft keyboard #241

Description

@Dima-Android

That's on 37a0946

Currently when i select Text annotation tool and tap on the screen, an empty Text annotation appears and it's bounding box getting auto-selected by the reader.
What is desirable is that the reader focuses edit text field within this box, which should also trigger soft keyboard on Android to appear.

The way i tested it is that i went to the ReaderWebCallChainExecutor and commented out every single one of the JS methods that interacted with reader (except initialization), to make sure Android is not trying to interrupt anything within the reader by sending JS request at inappropriate timings.
I also commented the inside of this method, to suppress opening of ReaderAnnotationScreen, which I guess should not be displayed for this annotation immediatelly, but instead user should be able to just type text into the annotation itself:
https://github.com/zotero/zotero-android/blob/ff6cbd43a0143f0e9ca185e15b9883f6d87d235e/app/src/main/java/org/zotero/android/screens/reader/ReaderViewModel.kt#L2204

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions