thomascube
2011-01-23 06670e4efae4b12b5dea5e0150cfed98dffbebb7
program/js/editor.js
@@ -3,7 +3,7 @@
 | Roundcube editor js library                                           |
 |                                                                       |
 | This file is part of the Roundcube web development suite              |
 | Copyright (C) 2006, Roundcube Dev, - Switzerland                      |
 | Copyright (C) 2006, The Roundcube Dev Team                            |
 | Licensed under the GNU GPL                                            |
 |                                                                       |
 +-----------------------------------------------------------------------+
@@ -71,8 +71,10 @@
  if (elem && elem.type == 'select-one') {
    rcmail.change_identity(elem);
    // Focus previously focused element
    if (fe && fe.id != rcmail.env.composebody)
    if (fe && fe.id != rcmail.env.composebody) {
      window.focus(); // for WebKit (#1486674)
      fe.focus();
    }
  }
  // set tabIndex and set focus to element that was focused before