Base: Closing uno dialog with escape key opens macro editor

Hello.

On one of my forms a push button opens a custom dialog
which i load with the these instructions:

DialogLibraries.LoadLibrary( "Standard" )
oDialog = createUnoDialog( DialogLibraries.Standard.DialogCategory )

The dialog works fine, however, when i press the Escape key in that dialog
it closes and the macro editor opens. Is this the expected behaviour?

If so, how can i prevent that since I would rather have the editor not to open,
but come back to the form instead?

If i did not explain my problem well enough or if you need additional information,
please let me know.

Regards,

Alfred


LibreOffice version: 1:4.3.3-2+deb8u1, amd64

Operating system: Debian 3.16.7-ckt11-1+deb8u3 (2015-08-04) x86_64 GNU/Linux

The question ‘Is this the expected behaviour?’ should be possible to be answered by somebody from LO team. Do they participate in this site? Should i ask this question somewhere else?