Skip to content

fix: respect user keybinding configuration for input_submit/input_newline#243

Open
ariane-emory wants to merge 3 commits intodevfrom
fix/input-enter-keybindings
Open

fix: respect user keybinding configuration for input_submit/input_newline#243
ariane-emory wants to merge 3 commits intodevfrom
fix/input-enter-keybindings

Conversation

@ariane-emory
Copy link
Owner

@ariane-emory ariane-emory commented Mar 12, 2026

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Make hardcoded default keybindings conditional so user configuration takes precedence. User bindings now come first in the array, and defaults are only added for actions the user hasn't configured.

This fixes the issue where configuring:
input_newline: return
input_submit: ctrl+return,alt+return,shift+return,linefeed
Would fail because hardcoded defaults always matched first.

Changes:

  • Check if user has configured submit/newline actions
  • Only add defaults for unconfigured actions
  • Put user bindings first so they take precedence

ariane-emory and others added 3 commits March 12, 2026 18:09
…line

Make hardcoded default keybindings conditional so user configuration
takes precedence. User bindings now come first in the array, and
defaults are only added for actions the user hasn't configured.

This fixes the issue where configuring:
  input_newline: return
  input_submit: ctrl+return,alt+return,shift+return
Would fail because hardcoded defaults always matched first.

Changes:
- Check if user has configured submit/newline actions
- Only add defaults for unconfigured actions
- Put user bindings first so they take precedence
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant