Permalink
Browse files

fixed browser check code regarding Dialogs and HTML5 autofocus (so th…

…at create and rename dialogs now indeed get focus on their input fields, even in Safari / Chrome.
  • Loading branch information...
1 parent ac6bb88 commit 2b349c9b50b3f8a14f89e4f8c926ab8b74e9d69a @GerHobbelt GerHobbelt committed Apr 29, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 Source/FileManager.js
View
2 Source/FileManager.js
@@ -3323,7 +3323,7 @@ FileManager.Dialog = new Class({
var autofocus_el = (this.options.autofocus_on ? this.el.getElement(this.options.autofocus_on) : (this.el.getElement('button.filemanager-dialog-confirm') || this.el.getElement('button')));
if (autofocus_el)
{
- if (('autofocus' in autofocus_el) && !Browser.webkit)
+ if (('autofocus' in autofocus_el) && !(Browser.Engine && Browser.Engine.webkit))
{
// HTML5 support: see http://diveintohtml5.org/detect.html
//

0 comments on commit 2b349c9

Please sign in to comment.