From 91f8496a03622b1b9786bae617f72a8da377ebc6 Mon Sep 17 00:00:00 2001 From: mogami Date: Thu, 13 Feb 2003 22:11:41 +0000 Subject: [PATCH] =?utf8?q?Macro=20Trigger=E3=81=AE=E3=82=B3=E3=83=BC?= =?utf8?q?=E3=83=89=E3=80=81=E6=9C=80=E8=BF=91=E6=9B=B8=E3=81=8D=E5=A4=89?= =?utf8?q?=E3=81=88=E3=81=9F=E3=81=A8=E3=81=8D=E3=81=AB=E3=81=86=E3=81=A3?= =?utf8?q?=E3=81=8B=E3=82=8Ashift=20key=E4=BB=98=E3=81=8D=E3=81=AE?= =?utf8?q?=E6=96=B9=E3=81=AEkey=20code=E3=81=AE=E6=89=B1=E3=81=84=E3=82=92?= =?utf8?q?=E9=96=93=E9=81=95=E3=81=88=E3=81=A6=E3=81=84=E3=81=9F=E3=81=AE?= =?utf8?q?=E3=81=A7=E4=BF=AE=E6=AD=A3=E3=80=82=E7=B0=A1=E5=8D=98=E6=84=9A?= =?utf8?q?=E3=82=88=E3=82=8A=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/files.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) 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 */ -- 2.11.0