… | … | ||
---|---|---|---|
54 | URxvt.keysym.C-M-r: selection:rot13 | 54 | URxvt.keysym.C-M-r: selection:rot13 |
55 | 55 | ||
56 | =back | 56 | =back |
57 | 57 | ||
58 | =cut | 58 | =cut |
59 | |||
60 | sub on_user_command { | ||
61 | my ($self, $cmd) = @_; | ||
62 | |||
63 | $cmd eq "selection:rot13" | ||
64 | and $self->selection (map { y/A-Za-z/N-ZA-Mn-za-m/; $_ } $self->selection); | ||
65 | |||
66 | () | ||
67 | } | ||
59 | 68 | ||
60 | sub on_action { | 69 | sub on_action { |
61 | my ($self, $action) = @_; | 70 | my ($self, $action) = @_; |
62 | 71 | ||
63 | $action eq "rot13" | 72 | $action eq "rot13" |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |