Dear Hiura,
thanks for picking up on this. Here is a minimal example:
#include <SFML/Window.hpp>
#include <unistd.h>
int main(int argc, char** argv) {
sf::Window wnd(sf::VideoMode(800, 600), "test window");
for (; ; usleep(10000)) {
sf::Event event;
while (wnd.pollEvent(event)) {
if (event.type == sf::Event::KeyPressed)
printf("[KeyPressed] key code: %u\n", event.key.code);
else if (event.type == sf::Event::KeyReleased)
printf("[KeyReleased] key code: %u\n", event.key.code);
else if (event.type == sf::Event::TextEntered)
printf("[TextEntered] unicode: %u character: '%c'\n", event.text.unicode, event.text.unicode);
}
}
}
and here the output when pressing first forward quote '´' and then 'e':
[KeyPressed] key code: 55
[KeyReleased] key code: 55
[KeyPressed] key code: 4
[TextEntered] unicode: 101 character: 'e'
[KeyReleased] key code: 4
I'd rather expect the following:
[KeyPressed] key code: 55
[KeyReleased] key code: 55
[KeyPressed] key code: 4
[TextEntered] unicode: 233 character: 'é'
[KeyReleased] key code: 4
I must correct my previous post; as a cheap workaround I had already added a selfmade text event replacement that gave me the forward quote. At the moment forward+backward quote ´ `, hat ^ and tilde ~ don't generate any text events, also not in conjunction with other keys (such as e, n, also space).