ruby-changes:73487
From: YO4 <ko1@a...>
Date: Fri, 9 Sep 2022 00:46:18 +0900 (JST)
Subject: [ruby-changes:73487] 28030f7b54 (master): eliminate magic number
https://git.ruby-lang.org/ruby.git/commit/?id=28030f7b54 From 28030f7b543299b3f5af41a3c9cf445d23820d26 Mon Sep 17 00:00:00 2001 From: YO4 <ysno@a...> Date: Wed, 7 Sep 2022 22:45:43 +0900 Subject: eliminate magic number --- win32/win32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win32/win32.c b/win32/win32.c index 24990a00d3..865edc8aa6 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -3106,7 +3106,7 @@ is_readable_console(SOCKET sock) /* call this for console only */ https://github.com/ruby/ruby/blob/trunk/win32/win32.c#L3106 ret = 1; } else if (ir.EventType == KEY_EVENT && !ir.Event.KeyEvent.bKeyDown && - ir.Event.KeyEvent.wVirtualKeyCode == 18 /* VK_MENU */ && + ir.Event.KeyEvent.wVirtualKeyCode == VK_MENU /* ALT key */ && ir.Event.KeyEvent.uChar.UnicodeChar) { ret = 1; } -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/