QKeySequence: Add support for Eject and Clear glyphs on macOS
Presumably, these glyphs have not been needed thus far, hence missing from the corresponding list. Pick-to: 6.2 6.3 Change-Id: I72cb8811f087c40229105f65d52a9c1048d9f9eb Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
This commit is contained in:
parent
9d41bd4312
commit
3e78f501b7
@ -45,6 +45,7 @@ static const MacSpecialKey entries[] = {
|
|||||||
{ Qt::Key_Return, 0x21B5 },
|
{ Qt::Key_Return, 0x21B5 },
|
||||||
{ Qt::Key_Enter, 0x2324 },
|
{ Qt::Key_Enter, 0x2324 },
|
||||||
{ Qt::Key_Delete, 0x2326 },
|
{ Qt::Key_Delete, 0x2326 },
|
||||||
|
{ Qt::Key_Clear, 0x2327 },
|
||||||
{ Qt::Key_Home, 0x2196 },
|
{ Qt::Key_Home, 0x2196 },
|
||||||
{ Qt::Key_End, 0x2198 },
|
{ Qt::Key_End, 0x2198 },
|
||||||
{ Qt::Key_Left, 0x2190 },
|
{ Qt::Key_Left, 0x2190 },
|
||||||
@ -58,6 +59,7 @@ static const MacSpecialKey entries[] = {
|
|||||||
{ Qt::Key_Meta, kControlUnicode },
|
{ Qt::Key_Meta, kControlUnicode },
|
||||||
{ Qt::Key_Alt, kOptionUnicode },
|
{ Qt::Key_Alt, kOptionUnicode },
|
||||||
{ Qt::Key_CapsLock, 0x21EA },
|
{ Qt::Key_CapsLock, 0x21EA },
|
||||||
|
{ Qt::Key_Eject, 0x23CF },
|
||||||
};
|
};
|
||||||
|
|
||||||
static bool operator<(const MacSpecialKey &entry, int key)
|
static bool operator<(const MacSpecialKey &entry, int key)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user