mainLayout->addWidget(label);
setLayout(mainLayout);
setWindowTitle(tr("Grab"));
+
+ // Will this make Mac OSX work???
+ setFocusPolicy(Qt::StrongFocus);
}
KeyGrabber::~KeyGrabber()
void KeyGrabber::keyPressEvent(QKeyEvent * e)
{
key = e->key();
- accept();
+
+ // Since this is problematic, we don't allow this key...
+ if (key != Qt::Key_Alt)
+ accept();
}