disable CTRL+T in ArcGIS Desktop in Extension

Discussion created by gkar68 on May 28, 2013
Latest reply on May 29, 2013 by Barbara_Schneider
am building an ARCGIS desktop Extension, with arcobjects .NET. I want to disable showing attribute table (because I want to force the editing through custom forms). So, I disable it from the context menu, but still the user can click the layer and press (CTRL + T) to show the attribute table.

I tried to use this code

IAcceleratorTable acceleratorTable = (IAcceleratorTable) Application.Document.Accelerators;
IAccelerator keyStroke = (IAccelerator) acceleratorTable.FindByKey(
(int) Keys.T, true, false, false);
That didn't work.

Is there a way to delete that accelerator (CTRL + T)?