… | |
… | |
488 | my ($entry, $ev, $x, $y) = @_; |
488 | my ($entry, $ev, $x, $y) = @_; |
489 | |
489 | |
490 | if ($ev->{button} == 3) { |
490 | if ($ev->{button} == 3) { |
491 | (new CFClient::UI::Menu |
491 | (new CFClient::UI::Menu |
492 | items => [ |
492 | items => [ |
|
|
493 | ["bind <i>" . (CFClient::UI::Label::escape $self->{select}) . "</i> to a key" |
493 | ["bind to a key" => sub { $::BIND_EDITOR->do_quick_binding ([$self->{select}], sub { $entry->grab_focus }) }] |
494 | => sub { $::BIND_EDITOR->do_quick_binding ([$self->{select}], sub { $entry->grab_focus }) }] |
494 | ], |
495 | ], |
495 | )->popup ($ev); |
496 | )->popup ($ev); |
496 | return 1; |
497 | return 1; |
497 | } |
498 | } |
498 | 0 |
499 | 0 |