]> git.lyx.org Git - lyx.git/commitdiff
Let Meta be an alias for Alt
authorLars Gullik Bjønnes <larsbj@gullik.org>
Sun, 9 Jul 2006 17:30:21 +0000 (17:30 +0000)
committerLars Gullik Bjønnes <larsbj@gullik.org>
Sun, 9 Jul 2006 17:30:21 +0000 (17:30 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14404 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt3/QContentPane.C
src/frontends/qt4/GuiWorkArea.C

index 62bea30815dfe8db53c9ddfecba3c01e5445da62..7e38b328f735fc5cf8fc41bb8ee136e9a0816886 100644 (file)
@@ -36,7 +36,7 @@ key_modifier::state q_key_state(Qt::ButtonState state)
                k |= key_modifier::ctrl;
        if (state & Qt::ShiftButton)
                k |= key_modifier::shift;
-       if (state & Qt::AltButton)
+       if (state & Qt::AltButton || state & Qt::MetaButton)
                k |= key_modifier::alt;
        return k;
 }
index bb7a4e72bf2e4b452b5ce071ca8105952c260d37..d17d6aefd6e4b7506dd893597f1f56a6eb824215 100644 (file)
@@ -65,7 +65,7 @@ key_modifier::state q_key_state(Qt::ButtonState state)
                k |= key_modifier::ctrl;
        if (state & Qt::ShiftModifier)
                k |= key_modifier::shift;
-       if (state & Qt::AltModifier)
+       if (state & Qt::AltModifier || state & Qt::MetaModifier)
                k |= key_modifier::alt;
        return k;
 }