+#ifdef XSERVER /* 15 Aug 92*/
+/*
+ * 18 Sep 92 Terry Lambert I find that this behaviour is questionable --
+ * I believe that this should be conditional on
+ * the value of pc_xmode rather than always
+ * done. In particular, "case NONE" seems to
+ * not cause a scancode return. This may
+ * invalidate alt-"=" and alt-"-" as well as the
+ * F11 and F12 keys, and some keys on lap-tops,
+ * Especially Toshibal T1100 and Epson Equity 1
+ * and Equity 1+ when not in pc_xmode.
+ */
+ /* control has highest priority */
+ if (ctrl_down)
+ capchar[0] = scan_codes[dt].ctrl[0];
+ else if (shift_down)
+ capchar[0] = scan_codes[dt].shift[0];
+ else
+ capchar[0] = scan_codes[dt].unshift[0];
+
+ if (caps && (capchar[0] >= 'a'
+ && capchar[0] <= 'z')) {
+ capchar[0] = capchar[0] - ('a' - 'A');
+ }
+ capchar[0] |= alt_down;
+ extended = 0;
+ return(&capchar[0]);
+#else /* !XSERVER*/