Skip to content

Commit 881e5d1

Browse files
newnonminggo
authored andcommitted
add one more android return buttons (#18636)
1 parent 1236514 commit 881e5d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cocos/platform/android/java/src/org/cocos2dx/lib/Cocos2dxEditBoxHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ public boolean onEditorAction(TextView v, int actionId, KeyEvent event) {
204204
editBox.endAction = Cocos2dxEditBox.kEndActionNext;
205205
Cocos2dxEditBoxHelper.closeKeyboardOnUiThread(index);
206206
return true;
207-
} else if (actionId == EditorInfo.IME_ACTION_DONE || actionId == EditorInfo.IME_ACTION_SEND || actionId == EditorInfo.IME_ACTION_SEARCH) {
207+
} else if (actionId == EditorInfo.IME_ACTION_DONE || actionId == EditorInfo.IME_ACTION_SEND || actionId == EditorInfo.IME_ACTION_SEARCH || actionId == EditorInfo.IME_ACTION_GO) {
208208
editBox.endAction = Cocos2dxEditBox.kEndActionReturn;
209209
Cocos2dxEditBoxHelper.closeKeyboardOnUiThread(index);
210210
}

0 commit comments

Comments
 (0)