disable CTRL+T in ArcGIS Desktop in Extension

740
1
05-28-2013 09:59 AM
GhassanKarwchan
New Contributor III
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);
keystroke.Delete();
That didn't work.

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

Thanks
0 Kudos
1 Reply
BarbaraSchneider1
New Contributor III
Hello,

I have a similar problem. I can not assign keyboard shortcuts using IAccelerator. I even can't assign keyboard shortcuts using the ArcMap GUI (Customize - Keyboard...). I mean, I can assign them, but they don't work.

Barbara
0 Kudos