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

# User Rev Content
1 sf-exg 1.1 #! perl
2    
3     sub on_register_command {
4 root 1.2 my ($self, $keysym, $state, $str) = @_;
5 sf-exg 1.1
6 root 1.2 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 sf-exg 1.1
12 root 1.2 return 1;
13     }
14 sf-exg 1.1
15 root 1.2 warn "unable to parse keysym '$str' as list, processing as normal keysym\n";
16     }
17    
18     ()
19 sf-exg 1.1 }