mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Teach dialogues about Escape to cancel, Enter to Save/OK, and F1 for help. Fixes #1535
This commit is contained in:
committed by
Dave Page
parent
ec5bc23dfd
commit
af43ccfc07
@@ -177,11 +177,11 @@ define('pgadmin.node.tablespace', [
|
||||
setup:function() {
|
||||
return {
|
||||
buttons: [{
|
||||
text: '', key: 27, className: 'btn btn-default pull-left fa fa-lg fa-question',
|
||||
text: '', key: 112, className: 'btn btn-default pull-left fa fa-lg fa-question',
|
||||
attrs:{name:'dialog_help', type:'button', label: gettext('Users'),
|
||||
url: url_for('help.static', {'filename': 'move_objects.html'})}
|
||||
},{
|
||||
text: gettext('OK'), key: 27, className: 'btn btn-primary fa fa-lg fa-save pg-alertify-button'
|
||||
text: gettext('OK'), key: 13, className: 'btn btn-primary fa fa-lg fa-save pg-alertify-button'
|
||||
},{
|
||||
text: gettext('Cancel'), key: 27, className: 'btn btn-danger fa fa-lg fa-times pg-alertify-button'
|
||||
}],
|
||||
|
||||
@@ -403,7 +403,7 @@ define('pgadmin.node.server', [
|
||||
setup:function() {
|
||||
return {
|
||||
buttons: [{
|
||||
text: gettext('Ok'), key: 27, className: 'btn btn-primary', attrs:{name:'submit'}
|
||||
text: gettext('Ok'), key: 13, className: 'btn btn-primary', attrs:{name:'submit'}
|
||||
},{
|
||||
text: gettext('Cancel'), key: 27, className: 'btn btn-danger', attrs:{name:'cancel'}
|
||||
}],
|
||||
|
||||
Reference in New Issue
Block a user