Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/wsconsctl allow non-command keysyms to be mapped as com...



details:   https://anonhg.NetBSD.org/src/rev/b75d6e3c6eaf
branches:  trunk
changeset: 782247:b75d6e3c6eaf
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Oct 23 15:30:45 2012 +0000

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

diffstat:

 sbin/wsconsctl/map_parse.y |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 7f7fe08575c4 -r b75d6e3c6eaf sbin/wsconsctl/map_parse.y
--- a/sbin/wsconsctl/map_parse.y        Tue Oct 23 15:12:59 2012 +0000
+++ b/sbin/wsconsctl/map_parse.y        Tue Oct 23 15:30:45 2012 +0000
@@ -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 @@
                        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;
                }
                ;
 



Home | Main Index | Thread Index | Old Index