private void KeyStateTracker_EvtKeyStateChanged()
{
try
{
// turn off select mode. If select mode is on,
// as the user moves the cursor, ACAT selects
// text in the target window
if (!KeyStateTracker.IsShiftOn())
{
using (AgentContext context = Context.AppAgentMgr.ActiveContext())
{
context.TextAgent().SetSelectMode(false);
}
}
}
catch (Exception ex)
{
Log.Exception(ex);
}
}