Skip to content
This repository has been archived by the owner on Jan 4, 2023. It is now read-only.

Commit

Permalink
Merge branch 'issue49' into dev. Resolves issue #49.
Browse files Browse the repository at this point in the history
  • Loading branch information
jsbackus committed Sep 24, 2016
2 parents 3d7185c + 1a5389a commit a86afd8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/qtx11keymapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -283,11 +283,20 @@ void QtX11KeyMapper::populateMappingHashes()
qtKeyToVirtualKey[AntKey_Alt_R] = XK_Alt_R;
qtKeyToVirtualKey[AntKey_KP_Multiply] = XK_KP_Multiply;

// Map 0 to 9
for (int i=0; i <= (XK_KP_9 - XK_KP_0); i++)
{
qtKeyToVirtualKey[AntKey_KP_0 + i] = XK_KP_0 + i;
}

// Map lower-case latin characters to their capital equivalents
for( int i=0; i <= (XK_odiaeresis - XK_agrave); i++) {
qtKeyToVirtualKey[ Qt::Key_Agrave + i ] = XK_agrave + i;
}
for( int i=0; i <= (XK_thorn - XK_oslash); i++) {
qtKeyToVirtualKey[ Qt::Key_Ooblique + i ] = XK_oslash + i;
}

QHashIterator<unsigned int, unsigned int> iter(qtKeyToVirtualKey);
while (iter.hasNext())
{
Expand Down

0 comments on commit a86afd8

Please sign in to comment.