Global shortcuts don't work in non-standard Resultsable

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Global shortcuts don't work in non-standard Resultsable

Wolfgang Gross
Hi all,

a standard results table (TextWindow title "Results") honors global shortcuts but this is not true for results tables using a different title.
After digging into the code I found out that for standard tables this is accomplished by the line
  textPanel.addKeyListener(ij)
in  ImageJ.showResults.
I was thinking about a plugin realising some special copy mechanism invoked by a global shortcut. This would not work for non-standard results tables.
My question: Is there a reason for the shortcut restriction?
Workaround: Extend resultstable overriding the show method and add the keylistener.

Any other suggestions?

TIA
Wolfgang Gross
Reply | Threaded
Open this post in threaded view
|

Re: Global shortcuts don't work in non-standard Resultsable

Rasband, Wayne (NIH/NIMH) [E]
On Feb 2, 2011, at 10:06 AM, Wolfgang Gross wrote:

> Hi all,
>
> a standard results table (TextWindow title "Results") honors global shortcuts but this is not true for results tables using a different title.
> After digging into the code I found out that for standard tables this is accomplished by the line
>  textPanel.addKeyListener(ij)
> in  ImageJ.showResults.
> I was thinking about a plugin realising some special copy mechanism invoked by a global shortcut. This would not work for non-standard results tables.
> My question: Is there a reason for the shortcut restriction?
> Workaround: Extend resultstable overriding the show method and add the keylistener.
>
> Any other suggestions?

This bug is fixed in the 1.45a3 daily build.

-wayne