#2045 Add 'Perform IME action' action (Android 13+)#2111
Open
#2045 Add 'Perform IME action' action (Android 13+)#2111
Conversation
Adds a new keyboard action that triggers the IME action (e.g. Send, Submit, Done) on the currently focused input field. Uses the accessibility service's ACTION_IME_ENTER node action, which requires Android 13+ (API 33 / TIRAMISU). https://claude.ai/code/session_01WYByQnTBo1Hudb7zmGkfj3
sds100
commented
Apr 12, 2026
base/src/main/java/io/github/sds100/keymapper/base/actions/PerformActionsUseCase.kt
Show resolved
Hide resolved
Replace the AccessibilityNodeInfo.ACTION_IME_ENTER node action with inputMethod.currentInputConnection.performEditorAction(), following the same pattern as injectText(). Adds performImeAction() to IAccessibilityService and implements it in BaseAccessibilityService. https://claude.ai/code/session_01WYByQnTBo1Hudb7zmGkfj3
Replace Icons.AutoMirrored.Outlined.Send (which may not resolve in this icon set) with Icons.Outlined.Keyboard which is already imported and used by other keyboard actions. https://claude.ai/code/session_01WYByQnTBo1Hudb7zmGkfj3
The exhaustive when(actionId) block in configAction() was missing a case for the new PERFORM_IME_ACTION, causing build and test failures. https://claude.ai/code/session_01WYByQnTBo1Hudb7zmGkfj3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #2045
Summary
AccessibilityNodeInfo.ACTION_IME_ENTERon the currently focused input field to fire whatever IME action the field declares (Send, Done, Go, Search, Next, etc.)Changes
ActionId.ktPERFORM_IME_ACTIONenum valueActionData.ktPerformImeActiondata objectPerformActionsUseCase.ktAccessibilityNodeInfo.ACTION_IME_ENTERwith Android 13+ guardActionUtils.ktSend), min API (TIRAMISU)ActionUiHelper.ktgetTitle()ActionDataEntityMapper.ktfromEntitymapping andSYSTEM_ACTION_ID_MAPentry ("perform_ime_action")strings.xmlaction_perform_ime_actionstring resourcehttps://claude.ai/code/session_01WYByQnTBo1Hudb7zmGkfj3