Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tab key now switches between APIs #919

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

sh1zicus
Copy link

@sh1zicus sh1zicus commented Nov 2, 2024

recording_2024-11-02_19.22.42.mp4

@sh1zicus sh1zicus changed the title Tab now switches between APIs Tab key now switches between APIs Nov 2, 2024
@TwelveNight
Copy link

Why is there no return to the previous tab?
just

        if (event.get_keyval()[1] === Gdk.KEY_ISO_Left_Tab) {
          const prevId =
            (currentApiId - 1 + APIS.asyncGet().length) %
            APIS.asyncGet().length;
          switchToTab(prevId);
          return true;
        }

🐶

@sh1zicus
Copy link
Author

sh1zicus commented Nov 3, 2024

Why is there no return to the previous tab? just

        if (event.get_keyval()[1] === Gdk.KEY_ISO_Left_Tab) {
          const prevId =
            (currentApiId - 1 + APIS.asyncGet().length) %
            APIS.asyncGet().length;
          switchToTab(prevId);
          return true;
        }

🐶

yeah, I combined both options,
I also want to do this in the left-right panel for centerModules,
but I haven’t figured it out yet

@sh1zicus
Copy link
Author

sh1zicus commented Nov 3, 2024

found a problem
when switching to Tools and back to APIs the focus is lost and it stops working

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.

2 participants