Changeset 25510 for lang/javascript/vimperator-plugins
- Timestamp:
- 12/01/08 12:03:49 (6 weeks ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/javascript/vimperator-plugins/trunk/gvimail.js
r24173 r25510 55 55 }, 56 56 /// On TabSelect (if Gmail Tab), we will give focus to the main canvas. 57 isGmail:function(uri, even) 58 { 59 if (/^https?:\/\/mail\.google\.com\//.test(uri)) 60 { 61 window.setTimeout(function(){GViMail.focusMainFrame();}, 100); 62 } 63 }, 57 get isGmail () (/^https?:\/\/mail\.google\.com\//.test(buffer.URL)), 64 58 /// when you type some key to make an action, habitually, the main canvas looses focus. 65 59 /// we will add an EventListener on keypress to avoid this. … … 156 150 function () { GViMail.focusMainFrame(); }); 157 151 getBrowser().mTabBox.addEventListener('TabSelect', function(event){ 158 GViMail.isGmail(this.parentNode.currentURI.spec, event); 152 if (GViMail.isGmail) 153 window.setTimeout(function(){GViMail.focusMainFrame();}, 100); 159 154 }, false); 160 window.addEventListener('keypress', GViMail.preventLooseFocus, true); 161 155 window.addEventListener('keypress', function () { 156 if (GViMail.isGmail) 157 GViMail.preventLooseFocus(); 158 }, true); 162 159 if (use_gvimail_css && (typeof liberator.globalVariables.styles == 'undefined' || liberator.globalVariables.styles == '')) 163 160 {
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)