The Enter key to view the message full screen (Closes #111)

This commit is contained in:
RainLoop Team 2014-04-13 04:38:18 +04:00
parent 0fad66c452
commit 873df524bc
3 changed files with 19 additions and 3 deletions

View file

@ -421,6 +421,14 @@ MailBoxMessageViewViewModel.prototype.initShortcuts = function ()
return false;
});
key('enter', Enums.KeyState.MessageList, function () {
if (Enums.Layout.NoPreview !== oData.layout() && self.message())
{
self.toggleFullScreen();
return false;
}
});
// TODO // more toggle
// key('', [Enums.KeyState.MessageList, Enums.KeyState.MessageView], function () {
// self.moreDropdownTrigger(true);

View file

@ -13345,6 +13345,14 @@ MailBoxMessageViewViewModel.prototype.initShortcuts = function ()
return false;
});
key('enter', Enums.KeyState.MessageList, function () {
if (Enums.Layout.NoPreview !== oData.layout() && self.message())
{
self.toggleFullScreen();
return false;
}
});
// TODO // more toggle
// key('', [Enums.KeyState.MessageList, Enums.KeyState.MessageView], function () {
// self.moreDropdownTrigger(true);

File diff suppressed because one or more lines are too long