in reply to GUI question: Prima: password input fields

subclass and override sub edit_text

sub edit_text { my ($self, $text) = @_; $self->{password} = $text; $self-> begin_undo_group; $self-> push_undo_action( 'edit_text', $self->text); $self-> text($text); $self-> end_undo_group; }

or patch

$self->{password} = $cap; $cap = $self-> {passwordChar} x length $cap if $self-> {writeO +nly}; $self-> {wholeLine} = $cap;

Replies are listed 'Best First'.
Re^2: GUI question: Prima: password input fields
by Anonymous Monk on Dec 22, 2019 at 00:45 UTC