$MW->bind('Tk::Entry', '<Control-v>',\&overwrite_paste); sub overwrite_paste{ my $entry = $_[0]; if($entry->selectionPresent){ $entry->delete('sel.first', 'sel.last'); $entry->selectionClear; $entry->insert(0,$entry->clipboardGet); } }
In reply to Re^4: Entry Widget (copy and paste issue)
by Anonymous Monk
in thread Entry Widget (copy and paste issue)
by rookie_monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |