Add Enter button to spec and keyboard_input

It was mistakenly left out.
This commit is contained in:
Vasily
2019-05-25 18:49:42 +02:00
committed by username223
parent eb25656eeb
commit 2d8f5a1b40
5 changed files with 12 additions and 0 deletions
+6
View File
@@ -142,6 +142,10 @@ std::optional<Token> checkIfLegalCapitalLiteral( std::string input ) noexcept
{
return Token::KEY_KPPLUS;
}
if ( input == "ENTER" )
{
return Token::KEY_ENTER;
}
// LOG incorrect character
return std::nullopt;
@@ -382,6 +386,8 @@ bool isLiteral( const Token token ) noexcept
return true;
case Token::KEY_KPPLUS:
return true;
case Token::KEY_ENTER:
return true;
default:
return false;