-
-
Notifications
You must be signed in to change notification settings - Fork 271
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
Keyboard Shortcut Improvements #2683
base: main
Are you sure you want to change the base?
Keyboard Shortcut Improvements #2683
Conversation
Makes sure the list view gets properly updated when deleting a bottle
update_bottles already updates the config so this is not necessary
Currently shortcuts are available but we would ideally want them to be context dependent, for example we wouldn't want "New Bottle" shortcut to be available when the user is inside a existing bottle. |
Pylint result on modfied files:
|
Can you rename |
Yes i'll update that |
983aef5
to
ac9cf19
Compare
9060022
to
252334f
Compare
self.__create_action('new', self.__new_bottle, ['<primary>n']) | ||
self.__create_action('switch_to_bottles_page', self.__show_bottles_view, ['<alt>1']) | ||
self.__create_action('switch_to_library_page', self.__show_library_view, ['<alt>2']) | ||
self.__create_action('go_back', self.__go_back, ['<alt>Left']) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding Escape would help.
self.__create_action('go_back', self.__go_back, ['<alt>Left']) | |
self.__create_action('go_back', self.__go_back, ['<alt>Left', 'Escape']) |
self.win.stack_main.set_visible_child_name("page_list") | ||
|
||
def __go_back(self, *_args): | ||
self.win.main_leaf.navigate(Adw.NavigationDirection.BACK) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested it locally and it doesn't work well in practice. Instead of going back a page, it goes to the main page when I press Alt+Left:
2023-06-24.08-39-24.mp4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noted this too, thats why i didn't add this once to the keyboard shortcuts window, the reason for this being we have two separate leaflets, this should be fixed automatically when we switch to AdwNavigationView.
Is this still a draft? |
Last i remember, there was this issue #2683 (comment) Apart from that i think this just needs a rebase. |
Description
Aims to add standard keyboard shortcuts to bottles for easier access to certain actions. Also adds a shortcuts window.
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
Provide instructions so we can reproduce.