[GH-ISSUE #127] [Request] Toggle or customize keys for navigating list #91

Closed
opened 2026-10-30 21:18:58 +00:00 by bsakaguchi · 7 comments
Owner

Originally created by @TFWol on GitHub (Feb 17, 2023).
Original GitHub issue: https://github.com/DominikDoom/a1111-sd-webui-tagcomplete/issues/127

Originally assigned to: @DominikDoom on GitHub.

After updates, I usually go in and edit the script to remove capturing of Home and End keys since I use those to jump around the prompt as things pop up in my mind.
Here: github.com/DominikDoom/a1111-sd-webui-tagcomplete@c1fb4619a4/javascript/tagAutocomplete.js (L688)

Would you consider adding a way to choose the desired key or at least toggling it off/on?
I'd use the blacklist, but that disables the list entirely rather than just a couple of keys.

Editing the file is not too much of a hassle, but I'd thought I'd ask.

Originally created by @TFWol on GitHub (Feb 17, 2023). Original GitHub issue: https://github.com/DominikDoom/a1111-sd-webui-tagcomplete/issues/127 Originally assigned to: @DominikDoom on GitHub. After updates, I usually go in and edit the script to remove capturing of **Home** and **End** keys since I use those to jump around the prompt as things pop up in my mind. Here: https://github.com/DominikDoom/a1111-sd-webui-tagcomplete/blob/c1fb4619a4fdf2fa872a43329b819cc1683f7ce0/javascript/tagAutocomplete.js#L688 Would you consider adding a way to choose the desired key or at least toggling it off/on? I'd use the blacklist, but that disables the list entirely rather than just a couple of keys. Editing the file is not too much of a hassle, but I'd thought I'd ask.
bsakaguchi 2026-10-30 21:18:58 +00:00
Author
Owner

@DominikDoom commented on GitHub (Feb 18, 2023):

Custom keys would have to be done by editing a local file (since I really don't want to bother with a custom UI or using the limited gradio settings inputs for it), which I guess would be feasible since they aren't likely changing much in the future.

I never really saw the need for it, since you just have to press Escape to close the autocomplete window if you want to jump in the text without completing something, which will make the following inputs behave normally again. But I understand it can be annoying due to muscle memory, so really I'll just add it now since it won't hinder anyone. And more customizability is always nice!

<!-- gh-comment-id:1435648632 --> @DominikDoom commented on GitHub (Feb 18, 2023): Custom keys would have to be done by editing a local file (since I really don't want to bother with a custom UI or using the limited gradio settings inputs for it), which I guess would be feasible since they aren't likely changing much in the future. I never really saw the need for it, since you just have to press Escape to close the autocomplete window if you want to jump in the text without completing something, which will make the following inputs behave normally again. But I understand it can be annoying due to muscle memory, so really I'll just add it now since it won't hinder anyone. And more customizability is always nice!
Author
Owner

@DominikDoom commented on GitHub (Feb 18, 2023):

I've added the custom key bindings feature, you can adjust them by editing the new keymap.json file in the extension's tags folder. So you can either set the bindings currently using Home/End to something else or disable them entirely by setting them to "None" or leaving the string empty.

<!-- gh-comment-id:1435659432 --> @DominikDoom commented on GitHub (Feb 18, 2023): I've added the custom key bindings feature, you can adjust them by editing the new `keymap.json` file in the extension's tags folder. So you can either set the bindings currently using Home/End to something else or disable them entirely by setting them to "None" or leaving the string empty.
Author
Owner

@TFWol commented on GitHub (Feb 19, 2023):

Works wonderfully, thanks!

<!-- gh-comment-id:1435906777 --> @TFWol commented on GitHub (Feb 19, 2023): Works wonderfully, thanks!
Author
Owner

@Kenqr commented on GitHub (Apr 3, 2023):

The keymap.json file gets reset every time the extension is updated. Is there any way to keep my settings after updates?

<!-- gh-comment-id:1494002887 --> @Kenqr commented on GitHub (Apr 3, 2023): The keymap.json file gets reset every time the extension is updated. Is there any way to keep my settings after updates?
Author
Owner

@DominikDoom commented on GitHub (Apr 3, 2023):

@Kenqr It seems the webui changed the update mechanism quite a while ago already from just git pull to a rebase, which removes local changes even if the file didn't change upstream. I wasn't aware of that, I will try to migrate the key map to the normal Gradio settings in a sensible way.

<!-- gh-comment-id:1494080090 --> @DominikDoom commented on GitHub (Apr 3, 2023): @Kenqr It seems the webui changed the update mechanism quite a while ago already from just git pull to a rebase, which removes local changes even if the file didn't change upstream. I wasn't aware of that, I will try to migrate the key map to the normal Gradio settings in a sensible way.
Author
Owner

@DominikDoom commented on GitHub (Apr 3, 2023):

@Kenqr I was able to add it successfully, you can now just edit the hotkeys (and colors) in the webui settings page. As long as you don't break the JSON in the textbox it will work the same as before.

<!-- gh-comment-id:1494219414 --> @DominikDoom commented on GitHub (Apr 3, 2023): @Kenqr I was able to add it successfully, you can now just edit the hotkeys (and colors) in the webui settings page. As long as you don't break the JSON in the textbox it will work the same as before.
Author
Owner

@Kenqr commented on GitHub (Apr 3, 2023):

Wow, that was fast.
Thanks!

<!-- gh-comment-id:1494533541 --> @Kenqr commented on GitHub (Apr 3, 2023): Wow, that was fast. Thanks!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
DominikDoom/a1111-sd-webui-tagcomplete#91
No description provided.