]> Shamusworld >> Repos - virtualjaguar/blobdiff - src/gui/keygrabber.cpp
Video rendering now has correct timing per frame, in both NTSC and PAL mode.
[virtualjaguar] / src / gui / keygrabber.cpp
index 0bea66f33ae636846745f29d5fcd3ba5b220f9b5..23954b855450c65fa765e984c022ddb8130c61c4 100644 (file)
@@ -21,6 +21,9 @@ KeyGrabber::KeyGrabber(QWidget * parent/*= 0*/): QDialog(parent)
        mainLayout->addWidget(label);
        setLayout(mainLayout);
        setWindowTitle(tr("Grab"));
+
+       // Will this make Mac OSX work???
+       setFocusPolicy(Qt::StrongFocus);
 }
 
 KeyGrabber::~KeyGrabber()
@@ -42,5 +45,8 @@ void KeyGrabber::SetKeyText(int keyNum)
 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();
 }