Changeset 4290


Ignore:
Timestamp:
05/09/11 17:15:53 (13 years ago)
Author:
adriano
Message:

Ticket #1855 - Auto-complete de destinatarios na criacao de uma mensagem perde o foco

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/2.2.0.2/expressoMail1_2/js/DropDownContacts.js

    r3252 r4290  
    9494                match_cont = ""; 
    9595        } 
    96  
     96         
     97        if (document.getElementById('tipDiv')){  
     98                document.getElementById('tipDiv').focus();  
     99        }  
     100           
    97101        // treat especials keys 
    98102        // key ENTER 
     
    112116                return; 
    113117        } 
     118         
     119        // key LEFT and RIGHT (when pressed, keeps the actual selection preventing lost of focus selection on pressing "up" or "down" keys)  
     120        if (((key_pressed == 37) && (document.getElementById('tipDiv').style.visibility)) || ((key_pressed == 39) && (document.getElementById('tipDiv').style.visibility)))  
     121        {  
     122                selectContact(actualSelectedContact);  
     123                return;  
     124        }  
     125 
    114126        // key DOWN 
    115127        if ((key_pressed == 40) && (document.getElementById('tipDiv').style.visibility)){ 
Note: See TracChangeset for help on using the changeset viewer.