mirror of
https://github.com/Swordfish90/cool-retro-term.git
synced 2025-01-18 12:15:27 +00:00
Fixing keytabs (thank you yurivkhan)!
This commit is contained in:
parent
d6288518c4
commit
f7354e54dc
@ -79,7 +79,7 @@ Item{
|
||||
|
||||
session: KSession {
|
||||
id: ksession
|
||||
kbScheme: "linux"
|
||||
kbScheme: "default"
|
||||
|
||||
onFinished: {
|
||||
Qt.quit()
|
||||
|
@ -439,7 +439,7 @@ bool KeyboardTranslatorReader::parseAsStateFlag(const QString& item , KeyboardTr
|
||||
bool KeyboardTranslatorReader::parseAsKeyCode(const QString& item , int& keyCode)
|
||||
{
|
||||
QKeySequence sequence = QKeySequence::fromString(item);
|
||||
if ( !sequence.isEmpty() )
|
||||
if ( !sequence.isEmpty() && sequence[0] != Qt::Key_unknown )
|
||||
{
|
||||
keyCode = sequence[0];
|
||||
|
||||
@ -453,6 +453,12 @@ bool KeyboardTranslatorReader::parseAsKeyCode(const QString& item , int& keyCode
|
||||
keyCode = Qt::Key_PageUp;
|
||||
else if ( item == "next" )
|
||||
keyCode = Qt::Key_PageDown;
|
||||
else if ( item == "bracketleft" )
|
||||
keyCode = Qt::Key_BracketLeft;
|
||||
else if ( item == "backslash" )
|
||||
keyCode = Qt::Key_Backslash;
|
||||
else if ( item == "bracketright" )
|
||||
keyCode = Qt::Key_BracketRight;
|
||||
else
|
||||
return false;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user