-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Add keyboard shortcuts to context menu in editor #3294
Conversation
The second commit (b131781) is something that looked wrong, but as far as I know it does not make a difference, and I don't really understand what's going on. |
Sweet 👍, let me test on Mac and Win ;-) |
The indentation for all |
@Nodd, you mean like: def setup_context_menu(self):
"""Setup context menu"""
self.undo_action = create_action(
self,
_("Undo"),
icon=ima.icon('undo'),
shortcut=get_shortcut('editor', 'undo'),
triggered=self.undo,
) |
As I read pep8, you can also write
But I guess most important is to be consistent as it looks annoyingly messy otherwise. Anyway, I will make the change. |
Yes, either this or align after the opened parenthesis: def setup_context_menu(self):
"""Setup context menu"""
self.undo_action = create_action(self, _("Undo"),
icon=ima.icon('undo'),
shortcut=get_shortcut('editor', 'undo'),
triggered=self.undo,
) But I think the lines will be too long. |
Yes @Nodd, that's why I think about that option (it is too long) |
Thanks @jitseniesen, this looks good to me ;-) Note: The failure in our tests is related to CircleCI, whose support is unfinished. I stopped it for now to avoid further errors. I'll restart again after 3.0 is released. |
Before:

After:
