From: ayin Date: Sat, 16 Feb 2008 15:48:36 +0000 (+0000) Subject: Nuke LINUX_KEYS. X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=a04d84e01f9c7c8e7c2c45fc9e756cc6122d8d09;p=dana%2Furxvt.git Nuke LINUX_KEYS. --- diff --git a/src/command.C b/src/command.C index a49c3034..dd175514 100644 --- a/src/command.C +++ b/src/command.C @@ -378,6 +378,12 @@ map_function_key (KeySym keysym) case XK_Next: param = 6; break; + case XK_Home: + param = 7; + break; + case XK_End: + param = 8; + break; #endif case XK_Help: param = 28; @@ -755,13 +761,6 @@ rxvt_term::key_press (XKeyEvent &ev) } break; - case XK_End: - strcpy (kbuf, KS_END); - break; - case XK_Home: - strcpy (kbuf, KS_HOME); - break; - default: { int param = map_function_key (keysym); diff --git a/src/command.h b/src/command.h index 3de59128..ceb7a9bc 100644 --- a/src/command.h +++ b/src/command.h @@ -20,17 +20,6 @@ # define SCROLLBAR_CONTINUOUS_DELAY 0.05 #endif -/* - * key-strings: if only these keys were standardized - */ -#ifdef LINUX_KEYS -# define KS_HOME "\033[1~" /* Home == Find */ -# define KS_END "\033[4~" /* End == Select */ -#else -# define KS_HOME "\033[7~" /* Home */ -# define KS_END "\033[8~" /* End */ -#endif - #ifdef SCROLL_ON_SHIFT # define SCROLL_SHIFTKEY (shft) # define NOSCROLL_SHIFTKEY 0 diff --git a/src/feature.h b/src/feature.h index 46b0b73e..b9884ae8 100644 --- a/src/feature.h +++ b/src/feature.h @@ -157,14 +157,6 @@ #define DEFAULT_BACKSPACE "DEC" /* SPECIAL */ #define DEFAULT_DELETE "\033[3~" -/* - * To use - * Home = "\E[1~", End = "\E[4~" - * instead of - * Home = "\E[7~", End = "\E[8~" [default] - */ -/* #define LINUX_KEYS */ - /* * Enable the keysym resource which allows you to define strings associated * with various KeySyms (0xFF00 - 0xFFFF).