mirror of
https://github.com/glfw/glfw.git
synced 2026-09-18 22:55:46 +00:00
Wayland: Fix text input not following key repeat
The manual key repeat implementation did not call text input.
(cherry picked from commit 1a7da42e6e)
This commit is contained in:
+2
-2
@@ -531,7 +531,7 @@ static xkb_keysym_t composeSymbol(xkb_keysym_t sym)
|
||||
}
|
||||
}
|
||||
|
||||
static GLFWbool inputChar(_GLFWwindow* window, uint32_t scancode)
|
||||
GLFWbool _glfwInputTextWayland(_GLFWwindow* window, uint32_t scancode)
|
||||
{
|
||||
const xkb_keysym_t* keysyms;
|
||||
const xkb_keycode_t keycode = scancode + 8;
|
||||
@@ -573,7 +573,7 @@ static void keyboardHandleKey(void* data,
|
||||
|
||||
if (action == GLFW_PRESS)
|
||||
{
|
||||
const GLFWbool shouldRepeat = inputChar(window, scancode);
|
||||
const GLFWbool shouldRepeat = _glfwInputTextWayland(window, scancode);
|
||||
|
||||
if (shouldRepeat && _glfw.wl.keyboardRepeatRate > 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user