+ /* /\* If no defined Alt-code, log warning *\/ */
+ /* else */
+ /* guac_client_log_info(client, "unmapped keysym: 0x%x", keysym); */
+
+ } else {
+ /* Fall back to unicode events */
+ int unicode_code = keysym2uni(keysym);
+ guac_client_log_info(client, "Translated keysym:0x%x to unicode:0x%x (pressed=%d flag=%d)",
+ keysym, unicode_code, pressed, pressed ? KBD_FLAGS_DOWN : KBD_FLAGS_RELEASE);
+
+ /* LibfreeRDP seems not to take into account the DOWN/RELEASE flags.
+ * So we send only the key once.
+ */
+ if (pressed) {
+ rdp_inst->input->UnicodeKeyboardEvent(
+ rdp_inst->input,
+ 0,//pressed ? KBD_FLAGS_DOW : KBD_FLAGS_RELEASE,
+ unicode_code);
+ }
+ }