diff --git a/src/tabcontrollers/keyboardinput/KeyboardInputX11.cpp b/src/tabcontrollers/keyboardinput/KeyboardInputX11.cpp index 40f93da..18d3bce 100644 --- a/src/tabcontrollers/keyboardinput/KeyboardInputX11.cpp +++ b/src/tabcontrollers/keyboardinput/KeyboardInputX11.cpp @@ -3,10 +3,7 @@ #include #include #include - -// Used to get the compiler to shut up about C4100: unreferenced formal -// parameter. The cast is to get GCC to shut up about it. -#define UNREFERENCED_PARAMETER( P ) static_cast( ( P ) ) +#include namespace keyboardinput { @@ -44,8 +41,16 @@ void sendKeyPress( const KeySym keySymbol, const KeySym modifierSymbol ) void sendKeyboardInput( QString input ) { - // noop - UNREFERENCED_PARAMETER( input ); + std::vector characters = { 0 }; + for ( const auto& character : input ) + { + characters.push_back( character.toLatin1() ); + } + + for ( const auto character : characters ) + { + sendKeyPress( XStringToKeysym( &character ), noModifier ); + } } void sendKeyboardEnter()