Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a custom button which is made using python add-in.

I add this button in arcgis desktop and assign a new short-cut key for this button.

The problem is this button should be used while table of attributes is active. But short-cut key only works when main acrmap window is active.

Is there any way to assign short-cut keys for custom buttons and make them work while table of attributes is active?

share|improve this question

I've not had to create a Python AddIn but looking at the help file it seems that a button can only be placed on a tool bar, you cannot place it on the table window "tool bar". Based upon that it does not surprise me that the shortcut key only executes on the main map window. These are the Table short-cuts and it does say the table window must have focus, by clicking on your addIn button on a tool bar you are moving focus away from the table window...

share|improve this answer
Looks like it's imposible to solve this problem using only standart ArcGIS functionality. Maybe there are other ways out? – Vasyska May 8 '14 at 11:41
You get more control with ArcObjects, there are events that you can listen for and activate/deactivate the tool accordingly or simply return(); if a specific condition isn't met. – Michael Miles-Stimson May 9 '14 at 9:31

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.