$self->configure;
$tab->focus_in;
$tab->XMapWindow ($tab->parent);
- $self->refresh;
delete $tab->{activity};
+ $self->refresh;
()
}
sub tab_key_press {
my ($self, $tab, $event, $keysym, $str) = @_;
- if ($event->{state} & urxvt::ShiftMask
- && ($keysym == 0xff51 || $keysym == 0xff53)) {
- my ($idx) = grep $self->{tabs}[$_] == $tab, 0 .. $#{ $self->{tabs} };
+ if ($event->{state} & urxvt::ShiftMask) {
+ if ($keysym == 0xff51 || $keysym == 0xff53) {
+ my ($idx) = grep $self->{tabs}[$_] == $tab, 0 .. $#{ $self->{tabs} };
- --$idx if $keysym == 0xff51;
- ++$idx if $keysym == 0xff53;
+ --$idx if $keysym == 0xff51;
+ ++$idx if $keysym == 0xff53;
- $self->make_current ($self->{tabs}[$idx % @{ $self->{tabs}}]);
- $self->refresh;
-
- return 1;
+ $self->make_current ($self->{tabs}[$idx % @{ $self->{tabs}}]);
+
+ return 1;
+ } elsif ($keysym == 0xff54) {
+ $self->new_tab;
+
+ return 1;
+ }
}
()
displays a "[NEW]" button, which, when clicked, will add a new tab, followed by one
button per tab.
-Clicking a button will activate that tab. Pressing Shift-Left and
-Shift-Right will switch to the tab left or right of the current one.
+Clicking a button will activate that tab. Pressing B<Shift-Left> and
+B<Shift-Right> will switch to the tab left or right of the current one,
+while B<Shift-Down> creates a new tab.
=item mark-urls