--- rxvt-unicode/src/perl/readline 2006/02/06 06:14:08 1.7 +++ rxvt-unicode/src/perl/readline 2006/02/12 05:31:53 1.8 @@ -19,14 +19,20 @@ sub on_button_press { my ($self, $event) = @_; - return - if $self->current_screen || $self->hidden_cursor || !$self->{enabled}; + $self->current_screen || $self->hidden_cursor || !$self->{enabled} + and return; + + my $mask = $self->ModLevel3Mask | $self->ModMetaMask + | urxvt::ShiftMask | urxvt::ControlMask; + + ($event->{state} & $mask) == urxvt::ShiftMask + or return; $termios->getattr ($self->pty_fd) or return; - return - if $termios->getlflag & &POSIX::ICANON; + $termios->getlflag & &POSIX::ICANON + and return; my ($row, $col) = $self->screen_cur; my $line = $self->line ($row);