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)