Added global shortcuts for switching to previous/next group #7

Merged
blu.256 merged 1 commits from feat/switch-shortcut into master 11 months ago
Collaborator

This resolves issue #6

This resolves issue #6
8.1 KiB
blu.256 added this to the R14.1.1 release milestone 11 months ago
blu.256 added 1 commit 11 months ago
2f27dd9940
Added global shortcuts for switching to previous/next group
blu.256 requested review from MicheleC 11 months ago
MicheleC approved these changes 11 months ago
Dismissed
MicheleC left a comment
Owner

Looks good.

Looks good.
Owner

One question is whether we should use the same shortcut across TDE for this, considering the discussion on TDE/tdebase#352.
Something like a common combination shared by kkbswitch/kxkb/TCC config page for switching keyboard layout forward and reverse.
What do you think?

One question is whether we should use the same shortcut across TDE for this, considering the discussion on TDE/tdebase#352. Something like a common combination shared by kkbswitch/kxkb/TCC config page for switching keyboard layout forward and reverse. What do you think?
Poster
Collaborator

Nice idea. KXkb already uses the shortcuts from the TCC module for next/previous layout, so we would need to make KKbSwitch respect these global shortcuts. But KKbSwitch also has some additional shortcuts of its own (Switch to layout n). They are dynamically created, so I doubt we could add them to the TCC module.

Nice idea. KXkb already uses the shortcuts from the TCC module for next/previous layout, so we would need to make KKbSwitch respect these global shortcuts. But KKbSwitch also has some additional shortcuts of its own (Switch to layout `n`). They are dynamically created, so I doubt we could add them to the TCC module.
Poster
Collaborator

If we agree on this, then I won't merge this PR yet. I'll incorporate the changes into this PR.

If we agree on this, then I won't merge this PR yet. I'll incorporate the changes into this PR.
Owner

I think we can have both. The dynamic switch to layout n keyboard shortcuts will be specific to kkbswitch, while the shortcuts for switching to previous/next group will use the global settings from TCC.

I think we can have both. The dynamic `switch to layout n` keyboard shortcuts will be specific to kkbswitch, while the shortcuts for switching to previous/next group will use the global settings from TCC.
MicheleC dismissed MicheleC’s review 11 months ago
Reason:

More changes needed as per discussion in comments

Poster
Collaborator

Umm, I've tried to implement that, but I discovered an important drawback to consider:

The shortcuts are stored in two different config files. It it simple to read from two config files and combine shortcuts. But it is not possible to choose where the TDEGlobalAccel object will write each shortcut, they all get written at once.

The option of having two separate TDEGlobalAccel objects is also not viable, as the KKeyChooser class only works on a single TDEAccel/TDEGlobalAccel object, and having two KKeyChooser widgets might be needlessly complex.

What do you think?

Umm, I've tried to implement that, but I discovered an important drawback to consider: The shortcuts are stored in two different config files. It it simple to read from two config files and combine shortcuts. But it is not possible to choose where the TDEGlobalAccel object will write each shortcut, they all get written at once. The option of having two separate TDEGlobalAccel objects is also not viable, as the KKeyChooser class only works on a single TDEAccel/TDEGlobalAccel object, and having two KKeyChooser widgets might be needlessly complex. What do you think?
Owner

In such case, I think we can treat kkbswitch as an independent application with its own keyboard shortcuts written to its own file (pretty much as it is now) so we can simply merge this PR as is.

In such case, I think we can treat kkbswitch as an independent application with its own keyboard shortcuts written to its own file (pretty much as it is now) so we can simply merge this PR as is.
blu.256 merged commit 2f27dd9940 into master 11 months ago
blu.256 deleted branch feat/switch-shortcut 11 months ago
Poster
Collaborator

Merged + backported for R14.1.1.

Merged + backported for R14.1.1.
Owner

Thanks for the good work!

Thanks for the good work!

Reviewers

MicheleC was requested for review 11 months ago
The pull request has been merged as 2f27dd9940.
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: TDE/kkbswitch#7
Loading…
There is no content yet.