LaurentGomila/SFML — Issue #125: sf::Keyboard lacks LParen and RParen keys
Author: amablue
Created: 2011-11-22 10:06:48+00:00
State: open

When pressing shift 9 or shift 0 to get to the parentheses, the event's `Key.Code` field is 0. It appears that `sf::Keyboard` lacks the values `LParen` and `RParen`. On Linux, I believe you'll need something like this added to `Keyboard::Key WindowImplX11::KeysymToSF(KeySym symbol)` in `WindowImplX11.cpp`

case XK_parenleft : return Keyboard::LParen;
case XK_parenright : return Keyboard::RParen;

(and of course, values for LParent and RParen would need to be added to the `Keyboard` enum)