The key you just pressed is not recognized by SDL -- xcape

I am reporting this as requested. Running Ubuntu 18.04 and its libsdl2-2.0-0 package (2.0.8+dfsg1-1ubuntu1.18.04.1).

I’m using xcape to remap the space key, as seen in the README on that github page.

I’m using scrcpy to communicate with an Android device. Scrcpy uses SDL.

When I hit my space bar in the scrcpy window, I get this error message:
“The key you just pressed is not recognized by SDL. To help get this fixed, please report this to the SDL forums/mailing list: X11 KeyCode 255 (247), X11 KeySym 0x20 (space).”

I’m trying to do the same thing (only with a different keycode), did you find any solution?