542c542,545 < _OnEnterKeyDown(); --- > if( (::GetKeyState(VK_CONTROL)&~1) == 0 ) > _OnEnterKeyDown(); > else > _OnEnterKeyDownGoogle(); 547a551 > 621a626,630 > if( ::IsDBCSLeadByte( str[0] ) ) > { > _OnEnterKeyDownGoogle(); > return; > } 627a637,652 > } > void _OnEnterKeyDownGoogle() > { > CEdit edit = GetEditCtrl(); > CString str = MtlGetWindowText(edit);//some comboboxex control impl often not support GetWindowText > if (str.IsEmpty()) > return; > > str.Replace(' ', '+'); > str.Insert(0, "http://www.google.com/search?q=" ); > if (_AutoCompleteWindowVisible())// I have to clean auto complete window, but escape means undo... > ::SendMessage(GetEditCtrl(), WM_KEYDOWN, (WPARAM)VK_ESCAPE, 0); > > T* pT = static_cast(this); > pT->OnItemSelected(str); > _AddToAddressBoxUnique(str);