- if (entries[i].m_flags & wxACCEL_ALT)
- fVirt |= FALT;
- if (entries[i].m_flags & wxACCEL_SHIFT)
- fVirt |= FSHIFT;
- if (entries[i].m_flags & wxACCEL_CTRL)
- fVirt |= FCONTROL;
+ if ( flags & wxACCEL_ALT )
+ fVirt |= FALT | FVIRTKEY;
+ if ( flags & wxACCEL_SHIFT )
+ fVirt |= FSHIFT | FVIRTKEY;
+ if ( flags & wxACCEL_CTRL )
+ fVirt |= FCONTROL | FVIRTKEY;