Hotkey Callback

I have a PhAB application. It was processing an character and a
command to exit the program. And that was working.

I added a dialog window. On that dialog window I also added processing
as a “Done” callback, and that works. But . . .

The key no longer works on the base window.
Is this expected behavior?

Is there a way to trap the key for the Dialog window, only when the
Dialog window is realized, and trap it for the base window whenever someone
else on top isn’t catching it?

Never mind.

There are only two kinds of mistakes in this world. Mistakes you can blame
on someone else and really stupid mistakes. Unfortunately I have no one
else to blame for this one.

“Bill Caroselli (Q-TPS)” <QTPS@EarthLink.net> wrote in message
news:aqefjo$16k$1@inn.qnx.com

I have a PhAB application. It was processing an character and a
command to exit the program. And that was working.

I added a dialog window. On that dialog window I also added processing
Esc> as a “Done” callback, and that works. But . . .

The key no longer works on the base window.
Is this expected behavior?

Is there a way to trap the key for the Dialog window, only when the
Dialog window is realized, and trap it for the base window whenever
someone
else on top isn’t catching it?