… | |
… | |
3 | sub on_register_command { |
3 | sub on_register_command { |
4 | my ($self, $keysym, $state, $str) = @_; |
4 | my ($self, $keysym, $state, $str) = @_; |
5 | |
5 | |
6 | if ($str =~ /^list(.)/) { |
6 | if ($str =~ /^list(.)/) { |
7 | my @list = split /\Q$1/, $str; |
7 | my @list = split /\Q$1/, $str; |
8 | if (@list == 4) { |
8 | if (@list == 3 or @list == 4) { |
9 | $self->register_command ($keysym++, $state, "$list[1]$_$list[3]") |
9 | $self->register_command ($keysym++, $state, "$list[1]$_$list[3]") |
10 | for split //, $list[2]; |
10 | for split //, $list[2]; |
11 | |
11 | |
12 | return 1; |
12 | return 1; |
13 | } |
13 | } |