From: mogami Date: Thu, 13 Feb 2003 22:11:41 +0000 (+0000) Subject: Macro Triggerのコード、最近書き変えたときにうっかりshift key付きの方のkey codeの扱いを間違えていたので修正。簡単愚より。 X-Git-Tag: v2.1.2~1624 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=91f8496a03622b1b9786bae617f72a8da377ebc6;p=hengbandforosx%2Fhengbandosx.git Macro Triggerのコード、最近書き変えたときにうっかりshift key付きの方のkey codeの扱いを間違えていたので修正。簡単愚より。 --- diff --git a/src/files.c b/src/files.c index 81563cef2..81198d03c 100644 --- a/src/files.c +++ b/src/files.c @@ -783,8 +783,15 @@ errr process_pref_file_command(char *buf) /* Get the corresponding key code */ macro_trigger_keycode[0][m] = string_make(zz[1]); - /* Key code of a combination of it with the shift key */ - macro_trigger_keycode[1][m] = string_make(zz[2]); + if (tok == 3) + { + /* Key code of a combination of it with the shift key */ + macro_trigger_keycode[1][m] = string_make(zz[2]); + } + else + { + macro_trigger_keycode[1][m] = string_make(zz[1]); + } } /* No error */