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