summaryrefslogtreecommitdiff
path: root/skins/larry/ui.js
diff options
context:
space:
mode:
authorThomas Bruederli <thomas@roundcube.net>2014-05-07 20:04:13 +0200
committerThomas Bruederli <thomas@roundcube.net>2014-05-07 20:04:13 +0200
commitea0866a1adc9239b8b115ab2490e1dd88f3c64ec (patch)
tree36ea1a79e319a49df5e224e1b79736b5984c6c2a /skins/larry/ui.js
parentb2992dd2283c3d0ac95f3293497dfaed0493f607 (diff)
Improve keyboard navigation on compose screen: define tabindex groups + enable keyboard controls of contacts list widget
Diffstat (limited to 'skins/larry/ui.js')
-rw-r--r--skins/larry/ui.js13
1 files changed, 8 insertions, 5 deletions
diff --git a/skins/larry/ui.js b/skins/larry/ui.js
index 922bb2119..1d38ceae1 100644
--- a/skins/larry/ui.js
+++ b/skins/larry/ui.js
@@ -195,11 +195,13 @@ function rcube_mail_ui()
}
}
- $('#composeoptionstoggle').click(function(){
+ $('#composeoptionstoggle').click(function(e){
$('#composeoptionstoggle').toggleClass('remove');
$('#composeoptions').toggle();
layout_composeview();
save_pref('composeoptions', $('#composeoptions').is(':visible') ? '1' : '0');
+ if (!rcube_event.is_keyboard(e))
+ this.blur();
return false;
}).css('cursor', 'pointer');
@@ -1071,7 +1073,7 @@ function rcube_mail_ui()
});
}
- function show_uploadform()
+ function show_uploadform(e)
{
var $dialog = $('#upload-dialog');
@@ -1097,6 +1099,10 @@ function rcube_mail_ui()
resizable: false,
closeOnEscape: true,
title: $dialog.attr('title'),
+ open: function(e) {
+ if (!document.all)
+ $('input[type=file]', $dialog).first().click();
+ },
close: function() {
try { $('#upload-dialog form').get(0).reset(); }
catch(e){ } // ignore errors
@@ -1106,9 +1112,6 @@ function rcube_mail_ui()
},
width: 480
}).show();
-
- if (!document.all)
- $('input[type=file]', $dialog).first().click();
}
function add_uploadfile(e)