Removing Undo cmd from guiTextEditCtrl
by Daniel Portugal de Lourenço · in Torque Game Builder · 12/09/2008 (2:41 pm) · 1 replies
I am trying to use an Undo command in my game, but when the client has the chat's guiTextEditCtrl on focus, the CTRL+Z command will be cought by this control, not by my actionMap.
I would like to remove guiTextEditCtrl's capability of catching the CTRL+Z command, so that it would be passed on to my actionMap to handle.
I tried to bind CTRL+Z directly into the globalActionMap, but it didn't work, since the guiTextEditCtrl kept intercepting the undo command.
Can anyone help?
I would like to remove guiTextEditCtrl's capability of catching the CTRL+Z command, so that it would be passed on to my actionMap to handle.
I tried to bind CTRL+Z directly into the globalActionMap, but it didn't work, since the guiTextEditCtrl kept intercepting the undo command.
Can anyone help?
Torque Owner Daniel Portugal de Lourenço
I edited guiTextEditCtrl.cc and removed the ctrl+z reference. It automatically passes unhandled commands to the gui's parent.
To be more specific, I just removed the part
case KEY_Z:
if (! mDragHit)
{
onUndo();
return true;
}
Done! :)