Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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

1 Answer 1

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
1  
Looks like it's imposible to solve this problem using only standart ArcGIS functionality. Maybe there are other ways out? –  Vasyska May 8 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 at 9:31

Your Answer

 
discard

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.