Changeset 3194


Ignore:
Timestamp:
09/01/10 15:50:15 (14 years ago)
Author:
rodsouza
Message:

Ticket #1011 - Evita a execução da ação da tecla de atalho quando da busca F9

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/expressoMail1_2/js/shortcut.js

    r3168 r3194  
    228228var selMessageShortcut = ""; 
    229229 
    230 shortcut.add("N",function(){ new_message("new","null"); },{'disable_in_input':true}); 
     230shortcut.add("N",function() 
     231{ 
     232        // avoids problem related at ticket #1011 
     233        var search_in_focus = false; 
     234        var search_win = document.getElementById( 'QuickCatalogSearch_window_QuickCatalogSearch' ); 
     235        if ( search_win && search_win.style.visibility != 'hidden' ) 
     236                search_in_focus = true; 
     237 
     238        if ( ! search_in_focus ) 
     239                new_message("new","null"); 
     240},{'disable_in_input':true}); 
    231241 
    232242shortcut.add("Esc",function(){ 
Note: See TracChangeset for help on using the changeset viewer.