No keyboard events and mouse events generated after using SDL_CreateWindowFrom

When I use it on an existing form After SDL_CreateWindowFrom creates a window, SDL_PollEvent(&event) no SDL_KEYDOWN event. There is no such problem with SDL_CreateWindow. Someone knows how to solve it. If you can tell, thank you very much.

Same here. Any work-around?