Skip to content

fix: add shortcut for GTK inspector#428

Merged
RobertMueller2 merged 1 commit intoSatty-org:mainfrom
RobertMueller2:fix_inspector
Mar 16, 2026
Merged

fix: add shortcut for GTK inspector#428
RobertMueller2 merged 1 commit intoSatty-org:mainfrom
RobertMueller2:fix_inspector

Conversation

@RobertMueller2
Copy link
Copy Markdown
Member

@RobertMueller2 RobertMueller2 commented Feb 22, 2026

Closes: #427

Before this fix, we mask GTK's own shortcuts (Ctrl+Shift+D and Ctrl+Shift+I).

There is no easy way to prevent this with how we handle shortcuts.

Instead, handle those shortcuts explicitly and actively enable GTK inspector.

Since there is no good way to check whether it's currently enabled, toggle would require an additional bool in sketchboard, which could become inconsistent if the user closes the inspector window. Instead, just enable without toggle, the user then has to close the inspector window if they want to get rid of it.

Closes: Satty-org#427

Before this fix, we mask GTK's own shortcuts (Ctrl+Shift+D and Ctrl+Shift+I).

There is no easy way to prevent this with how we handle shortcuts.

Instead, handle those shortcuts explicitly and actively enable GTK
inspector.

Since there is no good way to check whether it's currently enabled,
toggle would require an additional bool in sketchboard, which could get
out of sync if the user closes the inspector window. Instead, just
enable without toggle, the user then has to close the inspector window
if they want to get rid of it.
RobertMueller2 added a commit to RobertMueller2/Satty that referenced this pull request Mar 2, 2026
This adds a highlight (using adwaita @accent_color) for the button for a
tool that is actively editing. This works for text and crop. The idea is
that it's transparent to a user when esc/enter, which normally trigger
actions, are masked by a tool.

Based on PRs Satty-org#428 and Satty-org#398, so this remains a draft until they are
merged.

There are also a few leftover items.

[ ] explore if this can be extended to the other tools while they are
being dragged, it would make sense. In that context, it would be good if
they had uniform handling of esc/enter, double check this
[ ] removing the class within toolbars.rs update may not be ideal,
perhaps there's a better way
[ ] triggering ToolsToolbarInput::SwitchSelectedTool from toolbars.rs
init may be redundant, double check that it isn't
RobertMueller2 added a commit to RobertMueller2/Satty that referenced this pull request Mar 5, 2026
This adds a highlight (using adwaita @accent_color) for the button for a
tool that is actively editing. This works for text and crop. The idea is
that it's transparent to a user when esc/enter, which normally trigger
actions, are masked by a tool.

Based on PRs Satty-org#428 and Satty-org#398, so this remains a draft until they are
merged.

There are also a few leftover items.

[ ] explore if this can be extended to the other tools while they are
being dragged, it would make sense. In that context, it would be good if
they had uniform handling of esc/enter, double check this
[ ] removing the class within toolbars.rs update may not be ideal,
perhaps there's a better way
[ ] triggering ToolsToolbarInput::SwitchSelectedTool from toolbars.rs
init may be redundant, double check that it isn't
RobertMueller2 added a commit to RobertMueller2/Satty that referenced this pull request Mar 5, 2026
This adds a highlight (using adwaita @accent_color) for the button for a
tool that is actively editing. This works for text and crop. The idea is
that it's transparent to a user when esc/enter, which normally trigger
actions, are masked by a tool.

Based on PRs Satty-org#428 and Satty-org#398, so this remains a draft until they are
merged.

There are also a few leftover items.

[ ] explore if this can be extended to the other tools while they are
being dragged, it would make sense. In that context, it would be good if
they had uniform handling of esc/enter, double check this
[ ] removing the class within toolbars.rs update may not be ideal,
perhaps there's a better way
[ ] triggering ToolsToolbarInput::SwitchSelectedTool from toolbars.rs
init may be redundant, double check that it isn't
@RobertMueller2 RobertMueller2 requested a review from gabm March 16, 2026 06:17
@RobertMueller2 RobertMueller2 merged commit c71e847 into Satty-org:main Mar 16, 2026
3 checks passed
RobertMueller2 added a commit to RobertMueller2/Satty that referenced this pull request Mar 19, 2026
This adds a highlight (using adwaita @accent_color) for the button for a
tool that is actively editing. This works for text and crop. The idea is
that it's transparent to a user when esc/enter, which normally trigger
actions, are masked by a tool.

Based on PRs Satty-org#428 and Satty-org#398, so this remains a draft until they are
merged.

There are also a few leftover items.

[ ] explore if this can be extended to the other tools while they are
being dragged, it would make sense. In that context, it would be good if
they had uniform handling of esc/enter, double check this
[ ] removing the class within toolbars.rs update may not be ideal,
perhaps there's a better way
[ ] triggering ToolsToolbarInput::SwitchSelectedTool from toolbars.rs
init may be redundant, double check that it isn't
RobertMueller2 added a commit to RobertMueller2/Satty that referenced this pull request Mar 27, 2026
This adds a highlight (using adwaita @accent_color) for the button for a
tool that is actively editing. This works for text and crop. The idea is
that it's transparent to a user when esc/enter, which normally trigger
actions, are masked by a tool.

Based on PRs Satty-org#428 and Satty-org#398, so this remains a draft until they are
merged.

There are also a few leftover items.

[ ] explore if this can be extended to the other tools while they are
being dragged, it would make sense. In that context, it would be good if
they had uniform handling of esc/enter, double check this
[ ] removing the class within toolbars.rs update may not be ideal,
perhaps there's a better way
[ ] triggering ToolsToolbarInput::SwitchSelectedTool from toolbars.rs
init may be redundant, double check that it isn't
RobertMueller2 added a commit to RobertMueller2/Satty that referenced this pull request Mar 28, 2026
This adds a highlight (using adwaita @accent_color) for the button for a
tool that is actively editing. This works for text and crop. The idea is
that it's transparent to a user when esc/enter, which normally trigger
actions, are masked by a tool.

Based on PRs Satty-org#428 and Satty-org#398, so this remains a draft until they are
merged.

There are also a few leftover items.

[ ] explore if this can be extended to the other tools while they are
being dragged, it would make sense. In that context, it would be good if
they had uniform handling of esc/enter, double check this
[ ] removing the class within toolbars.rs update may not be ideal,
perhaps there's a better way
[ ] triggering ToolsToolbarInput::SwitchSelectedTool from toolbars.rs
init may be redundant, double check that it isn't
RobertMueller2 added a commit to RobertMueller2/Satty that referenced this pull request Mar 28, 2026
This adds a highlight (using adwaita @accent_color) for the button for a
tool that is actively editing. This works for text and crop. The idea is
that it's transparent to a user when esc/enter, which normally trigger
actions, are masked by a tool.

Based on PRs Satty-org#428 and Satty-org#398, so this remains a draft until they are
merged.

There are also a few leftover items.

[x] explore if this can be extended to the other tools while they are
being dragged, it would make sense. In that context, it would be good if
they had uniform handling of esc/enter, double check this
~ removing the class within toolbars.rs update may not be ideal,
perhaps there's a better way ~
[x] triggering ToolsToolbarInput::SwitchSelectedTool from toolbars.rs
init may be redundant, double check that it isn't
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.

GTK inspector shortcuts don't work

2 participants