-
Notifications
You must be signed in to change notification settings - Fork 472
dbeaver/pro#5471 [CB] Add shortcuts to tooltips data editor toolbar #3750
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
base: devel
Are you sure you want to change the base?
dbeaver/pro#5471 [CB] Add shortcuts to tooltips data editor toolbar #3750
Conversation
We used to have two buttons with different shortcuts for saving SQL as a script(first save) and saving already created script (updating). On UI they had the same icon and were more or less identical for the user. We decided to use the same shortcut and labels for both buttons (mod + S).
...ges/plugin-data-viewer/src/TableViewer/TableFooter/TableFooterMenu/TableFooterMenuService.ts
Outdated
Show resolved
Hide resolved
tooltip: t('data_viewer_action_edit_add') + ' (' + getBindingLabel(KEY_BINDING_ADD) + ')', | ||
}; | ||
case ACTION_DUPLICATE: | ||
return { ...action.info, label: '', icon: '/icons/data_add_copy_sm.svg', tooltip: t('data_viewer_action_edit_add_copy') + ' (' + getBindingLabel(KEY_BINDING_DUPLICATE) + ')' }; | ||
return { | ||
...action.info, | ||
label: '', | ||
icon: '/icons/data_add_copy_sm.svg', | ||
tooltip: t('data_viewer_action_edit_add_copy') + ' (' + getBindingLabel(KEY_BINDING_DUPLICATE) + ')', |
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.
Can we specify duplicate and add bindings in the same way as 'delete'?
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.
Yes, we can, do you want me to make it in this task or create another one?
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.
done
Added:
Save as script and save buttons now use the same shortcut since they never appear together and look similar so they function as a single button. (https://github.com/dbeaver/pro/issues/6891) Also fixes order.
