Skip to content

Commit 9e81f21

Browse files
author
H.Merijn Brand
committed
Add Pause and XF86Paste to Shift-Insert behavior
1 parent 04ab0fa commit 9e81f21

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/PM/CB/GUI.pm

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,12 @@ sub gui {
7272
-wrap => 'word',
7373
)->pack(-fill => 'x');
7474

75-
$write->bind('<Shift-Insert>', sub {
75+
my $cb_paste = sub {
7676
my $paste = eval { $write->SelectionGet }
7777
// eval { $write->SelectionGet(-selection => 'CLIPBOARD') };
7878
$write->insert('insert', $paste) if length $paste;
79-
});
79+
};
80+
$write->bind('<$_>', $cb_paste) for qw( Shift-Insert Pause XF86Paste );
8081

8182
my $button_f = $mw->Frame->pack;
8283
my $send_b = $button_f->Button(-text => 'Send',

0 commit comments

Comments
 (0)