Added "[labs] allow_ctrl_enter_on_compose = false" setting (Closes #387)

This commit is contained in:
RainLoop Team 2014-12-18 01:11:58 +04:00
parent e4b286e257
commit 453bcb969e
3 changed files with 10 additions and 5 deletions

View file

@ -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)

View file

@ -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),

View file

@ -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),