mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-12-25 00:21:29 +08:00
Added "[labs] allow_ctrl_enter_on_compose = false" setting (Closes #387)
This commit is contained in:
parent
e4b286e257
commit
453bcb969e
3 changed files with 10 additions and 5 deletions
|
@ -1063,10 +1063,13 @@
|
|||
return false;
|
||||
});
|
||||
|
||||
// key('ctrl+enter, command+enter', Enums.KeyState.Compose, function () {
|
||||
// self.sendCommand();
|
||||
// return false;
|
||||
// });
|
||||
if (!!Settings.settingsGet('AllowСtrlEnterOnCompose'))
|
||||
{
|
||||
key('ctrl+enter, command+enter', Enums.KeyState.Compose, function () {
|
||||
self.sendCommand();
|
||||
return false;
|
||||
});
|
||||
}
|
||||
|
||||
key('esc', Enums.KeyState.Compose, function () {
|
||||
if (self.modalVisibility())
|
||||
|
@ -1204,7 +1207,7 @@
|
|||
|
||||
window.gapi.load('auth', {'callback': function () {
|
||||
|
||||
var
|
||||
var
|
||||
oAuthToken = window.gapi.auth.getToken(),
|
||||
fResult = function (oAuthResult) {
|
||||
if (oAuthResult && !oAuthResult.error)
|
||||
|
|
|
@ -1063,6 +1063,7 @@ class Actions
|
|||
'AllowAdminPanel' => (bool) $oConfig->Get('security', 'allow_admin_panel', true),
|
||||
'AllowHtmlEditorSourceButton' => (bool) $oConfig->Get('labs', 'allow_html_editor_source_button', false),
|
||||
'AllowHtmlEditorBitiButtons' => (bool) $oConfig->Get('labs', 'allow_html_editor_biti_buttons', false),
|
||||
'AllowСtrlEnterOnCompose' => (bool) $oConfig->Get('labs', 'allow_ctrl_enter_on_compose', false),
|
||||
'UseRsaEncryption' => (bool) $oConfig->Get('security', 'use_rsa_encryption', false),
|
||||
'RsaPublicKey' => '',
|
||||
'HideDangerousActions' => $oConfig->Get('labs', 'hide_dangerous_actions', false),
|
||||
|
|
|
@ -247,6 +247,7 @@ Enables caching in the system'),
|
|||
'log_ajax_response_write_limit' => array(300),
|
||||
'allow_html_editor_source_button' => array(false),
|
||||
'allow_html_editor_biti_buttons' => array(false),
|
||||
'allow_ctrl_enter_on_compose' => array(false),
|
||||
'hide_dangerous_actions' => array(false),
|
||||
'use_app_debug_js' => array(false),
|
||||
'use_app_debug_css' => array(false),
|
||||
|
|
Loading…
Reference in a new issue