Skip to content

Feat: improve shortcut handling#1070

Merged
kaamui merged 3 commits into
OpenBoard-org:devfrom
letsfindaway:feat-improve-shortcut-handling
Sep 4, 2024
Merged

Feat: improve shortcut handling#1070
kaamui merged 3 commits into
OpenBoard-org:devfrom
letsfindaway:feat-improve-shortcut-handling

Conversation

@letsfindaway
Copy link
Copy Markdown
Collaborator

@letsfindaway letsfindaway commented Aug 25, 2024

This PR is a subset of #955 with all the improvements in shortcut handling, but without the preferences dialog.

It contains all improvements described here: #955 (comment).

It also contains the option to use shortcuts without the Ctrl modifier by setting

[Shortcut]
IgnoreCtrl=true

in the configuration file. This is especially useful to activate shortcuts with a single hand.

Note that this PR already contains the full-fledged UBShortcutManager, which includes collecting shortcuts from various places and presenting them as a table model for a UI. This is the base for implementing a configuration dialog later, even if many of its functions are currently unused.

- group actions instead of buttons in UBActionPalette
- associate actions with MainWindow
- add option to ignore Ctrl key
- set icon on action instead of button
  - assigning a shortcut in the UBShortcutManager changes actions
  - changing an action re-assignes the action's icon to the button
  - a previously set buutton icon is overwritten
  - setting the icon at the action avoids this
@letsfindaway letsfindaway changed the base branch from master to dev August 25, 2024 14:00
- switch between tools in board mode even if pen down
- new tool starts at current position
- add UBActionGroupHistory
- listen for key release events to return to previous tool
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