- Subject: Brief and keydefs
- From: Marko Mahnic <marko.mahnic@xxxxxxxx>
- Date: Tue, 11 Oct 2005 22:59:38 +0200
Hi,
I updated the brief.sl mode to better emulate BRIEF.
After looking at x-keydefs.sl and kp_keyefs.sl I saw
that you are using Key_X_Return in x- and Key_X_Enter
in kp_.
I modified kp_keydefs.sl to use Key_X_Return.
I also added #ifndef FLTK because all the keys known to FLTK
will be defined in fl-keydefs.sl
In brief.sl I added custom_variable("Key_Ctrl_Return", "^J")
because in the default keydefs.sl it is not defined. It would
be better to modify keydefs.sl to define as many keys as possible
for all systems.
--------- keydefs.sl
#ifdef FLTK
() = evalfile("fl-keydefs");
#elifdef IBMPC_SYSTEM
() = evalfile("pc-keydefs");
#elifdef XWINDOWS
() = evalfile("x-keydefs");
#elifdef VMS
() = evalfile("vms-keydefs");
#elifdef UNIX
() = evalfile("u-keydefs");
#else %{{{
... default keynames are defined here.
#endif
provide ("keydefs");
---------
I will prepare pc-keydefs.sl and post it here (or add it to jedomdes).
Wouldn't it be better to name the files
keydefs-x.sl
keydefs-pc.sl
...
This way the files would stick together when sorted in filelist.
Marko
--- /cygdrive/s/GnuSoft/sfnet_cvs/jedmodes/mode/kp_keydefs/kp_keydefs.sl 2005-09-15 08:36:43.500000000 +0200
+++ /cygdrive/s/localcvs/fljed/jed/lib/kp_keydefs.sl 2005-10-11 22:34:52.468750000 +0200
@@ -9,7 +9,7 @@
% Versions:
% 1.1 2005-07-04
-
+#ifndef FLTK
% Define symbolic keynames
static define set_keyvar (ibmpc, termcap, default)
{
@@ -40,7 +40,7 @@
variable Key_KP_7 = set_keyvar ("\eOw", "K1", "\eOw");
variable Key_KP_8 = set_keyvar ("\eOx", "K3", "\eOx");
variable Key_KP_9 = set_keyvar ("\eOy", "", "\eOy");
-variable Key_KP_Enter = set_keyvar ("\eOM", "", "\eOM");
+variable Key_KP_Return = set_keyvar ("\eOM", "", "\eOM");
variable Key_KP_Separator = set_keyvar ("\eOn", "", "\eOn");
variable Key_KP_Add = set_keyvar ("\eOm", "", "\eOm");
variable Key_KP_Subtract = set_keyvar ("\eOS", "", "\eOS");
@@ -81,7 +81,7 @@
-#endif
-
+#endif // XWINDOWS
+#endif // FLTK
provide ("kp_keydefs");
[2005 date index]
[2005 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]