altgr fix

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5327 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Levon 2002-09-22 12:20:33 +00:00
parent e2f908a49c
commit f907bf7ba5
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-09-22 John Levon <levon@movementarian.org>
* qlkey.h: make Key_Unknown a modifier, to handle
Norbert's Alt Gr
2002-09-17 John Levon <levon@movementarian.org>
* QLPainter.C: use dots for dashes because Qt sucks

View File

@ -20,7 +20,6 @@
*/
bool q_is_modifier(int qkey)
{
lyxerr[Debug::GUI] << "check modifier " << qkey << std::endl;
switch (qkey) {
case Qt::Key_Hyper_L:
case Qt::Key_Hyper_R:
@ -31,6 +30,10 @@ bool q_is_modifier(int qkey)
case Qt::Key_Meta:
case Qt::Key_Alt:
return true;
// AltGr becomes Key_Unknown on at least one keyboard
case Qt::Key_Unknown:
return true;
}
return false;
}