Hi all,
I'm trying to install a global action for a QWidget that has to be triggered when 'Esc' is pressed.

I try this code:
Qt Code:
  1. vClose=new QAction(this);
  2. vClose->setShortcut(Qt::Key_Escape);
  3. connect(vClose,SIGNAL(triggered()),this,SLOT(quickClose()));
  4. addAction(vClose); // I'm in a QWidget subclass
To copy to clipboard, switch view to plain text mode 
but it doesn't work. The function quickClose() is not called.
Instead if I put another key (such as Qt::Key_F4 or Qt::Key_F7, etc...) it gets called normally.
I could understand that Qt::Key_Escape and Qt::Key_Enter behave in a their own way...
So, what is my noobie mistake?