Skip to content

Commit

Permalink
Added extended characters from 0x0a0 - 0x0ff for non-US keyboards. Ho…
Browse files Browse the repository at this point in the history
…pefully this will resolve issue AntiMicro#49.
  • Loading branch information
jsbackus committed Sep 18, 2016
1 parent e7b5ee1 commit 9910a95
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/qtx11keymapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,11 @@ void QtX11KeyMapper::populateMappingHashes()
qtKeyToVirtualKey[AntKey_KP_0 + i] = XK_KP_0 + i;
}

// Map extended keyboard characters
for( int i=0; i <= (XK_ydiaeresis - XK_nobreakspace); i++) {
qtKeyToVirtualKey[ Qt::Key_nobreakspace + i ] = XK_nobreakspace + i;
}

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

0 comments on commit 9910a95

Please sign in to comment.