ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/perl/keysym-list
Revision: 1.2
Committed: Sat Dec 3 09:56:40 2011 UTC (12 years, 5 months ago) by root
Branch: MAIN
CVS Tags: rel-9_14
Changes since 1.1: +12 -14 lines
Log Message:
*** empty log message ***

File Contents

# Content
1 #! perl
2
3 sub on_register_command {
4 my ($self, $keysym, $state, $str) = @_;
5
6 if ($str =~ /^list(.)/) {
7 my @list = split /\Q$1/, $str;
8 if (@list == 4) {
9 $self->register_command ($keysym++, $state, "$list[1]$_$list[3]")
10 for split //, $list[2];
11
12 return 1;
13 }
14
15 warn "unable to parse keysym '$str' as list, processing as normal keysym\n";
16 }
17
18 ()
19 }