Skip to content

Comments

fix: handle ESC key to close plugin as advertised in the UI#3

Open
sudoytang wants to merge 1 commit intozellij-org:mainfrom
sudoytang:main
Open

fix: handle ESC key to close plugin as advertised in the UI#3
sudoytang wants to merge 1 commit intozellij-org:mainfrom
sudoytang:main

Conversation

@sudoytang
Copy link

The plugin's help text at the bottom of the screen already advertises <ESC> - close. However, the update function had no handler for the Esc key event, so pressing ESC did nothing.

I added a BareKey::Esc arm to the match block that calls close_self(), making the plugin behave as the UI hint describes.

Note that the newer version of rustup changed the target name to wasm32-wasip1.

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