v5.0-git
--------
+[mms] Add Alt + PGUP/PGDN shortcut to scroll through preview message (DIMP).
[jan] Show possible event conflicts in iTip viewer (Request #3991, Gonçalo
Queirós <goncalo.queiros@portugalmail.net>).
[mms] Move subfolders of special folders to lower folder display tree in
/* Keydown event handler */
keydownHandler: function(e)
{
- var co, form, ps, r, row, rowoff, sel,
+ var co, form, h, pp, ps, r, row, rowoff, sel,
elt = e.element(),
kc = e.keyCode || e.charCode;
case Event.KEY_PAGEUP:
case Event.KEY_PAGEDOWN:
- if (!e.ctrlKey && !e.shiftKey && !e.altKey && !e.metaKey) {
+ if (e.altKey) {
+ pp = $('previewPane');
+ h = pp.getHeight();
+ if (h != pp.scrollHeight) {
+ switch (kc) {
+ case Event.KEY_PAGEUP:
+ pp.scrollTop = Math.max(pp.scrollTop - h, 0);
+ break;
+
+ case Event.KEY_PAGEDOWN:
+ pp.scrollTop = Math.min(pp.scrollTop + h, pp.scrollHeight - h + 1);
+ break;
+ }
+ }
+ e.stop();
+ } else if (!e.ctrlKey && !e.shiftKey && !e.metaKey) {
ps = this.viewport.getPageSize() - 1;
move = ps * (kc == Event.KEY_PAGEUP ? -1 : 1);
if (sel.size() == 1) {
<?php echo _("The following keyboard shortcuts are available:") ?><br />
<span class="iconImg keyupImg"></span> / <span class="iconImg keydownImg"></span> : <?php echo _("Move up/down through the message list.") ?><br />
<span class="kbd"><?php echo _("PgUp") ?></span> / <span class="kbd"><?php echo _("PgDown") ?></span> : <?php echo _("Move one page up/down through the message list.") ?><br />
+ <span class="kbd"><?php echo _("Alt") ?></span> + <span class="kbd"><?php echo _("PgUp") ?></span> / <span class="kbd"><?php echo _("PgDown") ?></span> : <?php echo _("Scroll up/down through the display of the previewed message.") ?><br />
<span class="kbd"><?php echo _("Home") ?></span> / <span class="kbd"><?php echo _("End") ?></span> : <?php echo _("Move to the beginning/end of the message list.") ?><br />
<span class="kbd"><?php echo _("Del") ?></span> : <?php echo _("Delete the currently selected message(s).") ?> <?php printf(_("%s will delete the current message and move to the next message if a single message is selected."), '<span class="kbd">' . _("Shift") . '</span> + <span class="kbd">' . _("Del") . '</span>') ?><br />
<span class="kbd"><?php echo _("Enter") ?></span> : <?php echo _("Open message in a popup window.") ?><br />