Skip to content

Commit 268e5ce

Browse files
committed
Remove useless else
1 parent b37f433 commit 268e5ce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

glfw/cocoa_window.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -861,7 +861,8 @@ - (void)keyDown:(NSEvent *)event
861861
_glfwInputKeyboard(window, key, scancode, GLFW_PRESS, mods,
862862
[[markedText string] UTF8String], 1); // update pre-edit text
863863
return;
864-
} else if (in_compose_sequence) {
864+
}
865+
if (in_compose_sequence) {
865866
debug_key(@"Clearing pre-edit text at end of compose sequence\n");
866867
_glfwInputKeyboard(window, key, scancode, GLFW_PRESS, mods,
867868
NULL, 1); // clear pre-edit text

0 commit comments

Comments
 (0)