Skip to content

Conversation

supersaiyansubtlety
Copy link
Member

Uses InputMaps+ActionMaps instead of KeyListeners for KeyBinds.

Also:

  • fixes a bug where changing a keybind via the ui would add a new keybind instead of replacing the old one (isNewCombination was inverted)
  • simplifies EditorPanel ctrl+click to navigate logic
  • changes default EDITOR_SHOW_CALLS binding to ctrl + alt + c because ctrl + c is copy on windows (before it was both copying and showing calls)

@supersaiyansubtlety supersaiyansubtlety self-assigned this Sep 22, 2025
@supersaiyansubtlety supersaiyansubtlety added the user interface affects the enigma ui label Sep 22, 2025
@ix0rai ix0rai added bug Something isn't working refactor improvements that don't impact functionality labels Sep 23, 2025
@ix0rai ix0rai self-requested a review October 4, 2025 19:44
Copy link
Member

@ix0rai ix0rai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks great! this is giving me a few ideas for other improvements to keybinds:

  • improve the logic of the keybinding menus
    • when editing an individual keybind, "save" does not save to config. the keybinding will only be saved when the other save button (same text!) is pressed in the top-level menu. very unintuitive
    • "save" is on the left, with no visual differentiation. it's common in UI to put the continue button on the left, but usually with accent colour in order to show which to press. we should look at adding colour like what is seen on the "save as" dialog: Image
  • minor bug: you can create multiple of the exact same keybind (if the keybind is ctrl+shift+f, i can just add a second ctrl+shift+f without issue)
  • the config file is unreadable:
[key_codes]
	search = ["70;c0", "70;c0"]
	search_field = ["76;c0"]

we should look at either adding comments to describe what the bindings actually are or changing the encoding to something human-readable.

ANYWAY. i'm just yapping i'll break all that out into separate issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working refactor improvements that don't impact functionality user interface affects the enigma ui

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants