Module Name:    src
Committed By:   christos
Date:           Tue Oct 23 15:30:45 UTC 2012

Modified Files:
        src/sbin/wsconsctl: map_parse.y

Log Message:
allow non-command keysyms to be mapped as commands (experimental)


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/sbin/wsconsctl/map_parse.y

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sbin/wsconsctl/map_parse.y
diff -u src/sbin/wsconsctl/map_parse.y:1.11 src/sbin/wsconsctl/map_parse.y:1.12
--- src/sbin/wsconsctl/map_parse.y:1.11	Mon Oct 22 21:59:18 2012
+++ src/sbin/wsconsctl/map_parse.y	Tue Oct 23 11:30:45 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: map_parse.y,v 1.11 2012/10/23 01:59:18 christos Exp $ */
+/*	$NetBSD: map_parse.y,v 1.12 2012/10/23 15:30:45 christos Exp $ */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -152,7 +152,8 @@ keysym_cmd	: /* empty */
 			cur_mp->group1[0] = $2;
 		} 
 		| T_CMD T_KEYSYM_VAR {
-			yyerror("Not a command keysym");
+			cur_mp->command = KS_Cmd;
+			cur_mp->group1[0] = $2;
 		}
 		;
 

Reply via email to