+ if ( isDown )
+ SimulateModifiers(modifiers, true);
+
+ bool rc = DoKey(keycode, modifiers, isDown);
+
+ if ( !isDown )
+ SimulateModifiers(modifiers, false);
+
+ return rc;
+}
+
+void wxUIActionSimulator::SimulateModifiers(int modifiers, bool isDown)
+{
+ if ( modifiers & wxMOD_SHIFT )
+ DoKey(WXK_SHIFT, modifiers, isDown);
+ if ( modifiers & wxMOD_ALT )
+ DoKey(WXK_ALT, modifiers, isDown);
+ if ( modifiers & wxMOD_CONTROL )
+ DoKey(WXK_CONTROL, modifiers, isDown);