We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04ab0fa commit ec2098eCopy full SHA for ec2098e
lib/PM/CB/GUI.pm
@@ -72,11 +72,12 @@ sub gui {
72
-wrap => 'word',
73
)->pack(-fill => 'x');
74
75
- $write->bind('<Shift-Insert>', sub {
+ my $cb_paste = sub {
76
my $paste = eval { $write->SelectionGet }
77
// eval { $write->SelectionGet(-selection => 'CLIPBOARD') };
78
$write->insert('insert', $paste) if length $paste;
79
- });
+ };
80
+ $write->bind("<$_>", $cb_paste) for qw( Shift-Insert Pause XF86Paste );
81
82
my $button_f = $mw->Frame->pack;
83
my $send_b = $button_f->Button(-text => 'Send',
0 commit comments