From 522babb3a3ccdf4966d975b598af365bd7e7fb17 Mon Sep 17 00:00:00 2001 From: Kyle Francis Date: Fri, 1 Apr 2016 22:36:25 -0400 Subject: [PATCH 1/2] Implements 'scroll by keyboard #5139' --- skins/larry/ui.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/skins/larry/ui.js b/skins/larry/ui.js index 2377cb4d9..3604165ff 100644 --- a/skins/larry/ui.js +++ b/skins/larry/ui.js @@ -172,6 +172,10 @@ function rcube_mail_ui() if (get_pref('previewheaders') == '1') { toggle_preview_headers(); } + + if (rcmail.env.action == 'show') { + document.getElementById('messagecontent').focus() + } } else if (rcmail.env.action == 'compose') { rcmail.addEventListener('aftersend-attachment', show_uploadform) From 31713805f8b784d18244bc956a68010e51ba7f33 Mon Sep 17 00:00:00 2001 From: Kyle Francis Date: Sat, 2 Apr 2016 18:36:59 -0400 Subject: [PATCH 2/2] Changed native DOM call to jQuery --- skins/larry/ui.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skins/larry/ui.js b/skins/larry/ui.js index 3604165ff..1470c61c7 100644 --- a/skins/larry/ui.js +++ b/skins/larry/ui.js @@ -174,7 +174,7 @@ function rcube_mail_ui() } if (rcmail.env.action == 'show') { - document.getElementById('messagecontent').focus() + $('#messagecontent').focus() } } else if (rcmail.env.action == 'compose') {