Fix keyboard events on list widgets in Internet Explorer (#1489025) - It was a regression in fix for #1489008

pull/66/head^2
Aleksander Machniak 12 years ago
parent 4da1abe93f
commit 0c974b263d

@ -1,6 +1,10 @@
CHANGELOG Roundcube Webmail CHANGELOG Roundcube Webmail
=========================== ===========================
- Fix keyboard events on list widgets in Internet Explorer (#1489025)
RELEASE 0.9-rc2
---------------
- Fix security issue in save-pref command - Fix security issue in save-pref command
- Remove sig_above configuration option, use reply_mode only (#1489001) - Remove sig_above configuration option, use reply_mode only (#1489001)
- Refresh current folder in opener window after draft save or message sent (#1488997) - Refresh current folder in opener window after draft save or message sent (#1488997)

@ -178,11 +178,6 @@ function rcube_webmail()
parent.rcmail.env.frame_lock = null; parent.rcmail.env.frame_lock = null;
} }
// Makes that reference to document.activeElement do not throw
// "unspecified error" in IE9 (#1489008)
if (this.env.framed && bw.ie)
document.documentElement.focus();
// enable general commands // enable general commands
this.enable_command('close', 'logout', 'mail', 'addressbook', 'settings', 'save-pref', this.enable_command('close', 'logout', 'mail', 'addressbook', 'settings', 'save-pref',
'compose', 'undo', 'about', 'switch-task', 'menu-open', 'menu-save', true); 'compose', 'undo', 'about', 'switch-task', 'menu-open', 'menu-save', true);

@ -717,7 +717,7 @@ if (bw.ie) {
// jQuery plugin to emulate HTML5 placeholder attributes on input elements // jQuery plugin to emulate HTML5 placeholder attributes on input elements
jQuery.fn.placeholder = function(text) { jQuery.fn.placeholder = function(text) {
return this.each(function() { return this.each(function() {
var elem = $(this); var active = false, elem = $(this);
this.title = text; this.title = text;
// Try HTML5 placeholder attribute first // Try HTML5 placeholder attribute first
@ -742,8 +742,9 @@ jQuery.fn.placeholder = function(text) {
elem[(active ? 'addClass' : 'removeClass')]('placeholder').attr('spellcheck', active); elem[(active ? 'addClass' : 'removeClass')]('placeholder').attr('spellcheck', active);
}); });
// Do not blur currently focused element // Do not blur currently focused element (catch exception: #1489008)
if (this != document.activeElement) try { active = this == document.activeElement; } catch(e) {}
if (!active)
elem.blur(); elem.blur();
} }
}); });

@ -692,6 +692,7 @@ select_row: function(id, mod_key, with_mouse)
this.shift_start = null; this.shift_start = null;
this.last_selected = id; this.last_selected = id;
this.list.focus();
}, },

Loading…
Cancel
Save