Skip to content

[Feature request] Add return Press event for the TextView component. #4882

@tsonevn

Description

@tsonevn

From @bachras on May 4, 2017 14:1

Hi,

I am trying to implement TexView and submit it by pressing return button. However instead of submitting cursor goes to new line and doesn't do anything else. I have tried all examples i could found online, i also install this examples app and noticed that it is the same behaviour.

I added alert() :

submit(args) {
        alert("Submit Text: " + this.tvtext);
        let textview: TextView = <TextView>args.object;
        if (isAndroid) {
            textview.android.clearFocus();
        }
    }

But nothing is alerted after return(Send) button is clicked. Does anyone have idea what could be wrong? Thank you in advance.

Copied from original issue: NativeScript/nativescript-sdk-examples-ng#183


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions