• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Japanese translation of message catalog for Sawfish Window-Manager


Commit MetaInfo

修订版1ec24cc4925b7a265fcecbccdb07bcf927a341c2 (tree)
时间1999-09-19 22:31:48
作者john <john>
Commiterjohn

Log Message

(find_meta): fixed meta-keysyms and alt-keysyms; now works when alt
and meta keysyms are mapped to the same keycode

更改概述

差异

--- a/src/keys.c
+++ b/src/keys.c
@@ -987,6 +987,7 @@ find_meta(void)
987987 KeySym *syms;
988988 int syms_per_code;
989989 XModifierKeymap *mods;
990+ repv meta_syms = Qnil, alt_syms = Qnil;
990991
991992 #if defined (XlibSpecificationRelease) && XlibSpecificationRelease >= 4
992993 XDisplayKeycodes(dpy, &min_code, &max_code);
@@ -1019,10 +1020,14 @@ find_meta(void)
10191020 {
10201021 case XK_Meta_L: case XK_Meta_R:
10211022 meta_mod = 1 << row;
1023+ meta_syms = Fcons (sym == XK_Meta_L ? rep_VAL(&meta_l)
1024+ : rep_VAL(&meta_r), meta_syms);
10221025 break;
10231026
10241027 case XK_Alt_L: case XK_Alt_R:
10251028 alt_mod = 1 << row;
1029+ alt_syms = Fcons (sym == XK_Alt_L ? rep_VAL(&alt_l)
1030+ : rep_VAL(&alt_r), alt_syms);
10261031 break;
10271032
10281033 case XK_Num_Lock:
@@ -1041,20 +1046,19 @@ find_meta(void)
10411046 return;
10421047
10431048 if (meta_mod == 0)
1044- {
10451049 meta_mod = alt_mod;
1046- Fset (Qmeta_keysyms, rep_list_2 (rep_VAL(&alt_l), rep_VAL(&alt_r)));
1047- }
1048- else
1049- Fset (Qmeta_keysyms, rep_list_2 (rep_VAL(&meta_l), rep_VAL(&meta_r)));
10501050
10511051 if (alt_mod == 0)
1052- {
10531052 alt_mod = meta_mod;
1054- Fset (Qalt_keysyms, rep_list_2 (rep_VAL(&meta_l), rep_VAL(&meta_r)));
1053+
1054+ if (meta_mod == alt_mod)
1055+ {
1056+ meta_syms = Fnconc (rep_list_2 (meta_syms, alt_syms));
1057+ alt_syms = meta_syms;
10551058 }
1056- else
1057- Fset (Qalt_keysyms, rep_list_2 (rep_VAL(&alt_l), rep_VAL(&alt_r)));
1059+
1060+ Fset (Qmeta_keysyms, meta_syms);
1061+ Fset (Qalt_keysyms, alt_syms);
10581062 }
10591063
10601064