编辑:这是我的web应用程序的HTML/CSS问题。
我目前有一个这样的领域:
<input name="test" type="text" class="form-control" />
在安卓版Chrome上,当用户点击这个按钮时,他们的键盘上会有一个"Go"选项,我想这就是提交表格。
我不想那样。我只想要一个"完成"按钮或其他什么,这样他们就可以回去填写表格的其余部分。
我该如何做到这一点?
如果你想在你的应用程序中使用这个功能,它的代码对你很有帮助。
java file Code:-
edittext=(EditText)findViewById(R.id.edtxt);
@Override
edittext.setOnEditorActionListener(new OnEditorActionListener() {
public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
if(actionId==EditorInfo.IME_ACTION_DONE){
// Creating uri to be opened
// action perform
}
return false;
}
});