--- deliantra/Deliantra-Client/DC/MapWidget.pm 2006/07/22 12:36:17 1.76 +++ deliantra/Deliantra-Client/DC/MapWidget.pm 2006/07/23 02:44:05 1.77 @@ -32,7 +32,6 @@ $self->{completer} = new CFClient::MapWidget::Command:: command => $self->{command}, - can_focus => 1, tooltip => "The Command Completer\n\n" . "This is your central interface to send text commands to the server. " . "To enter a verbatim command to send to the server, just type the command, " @@ -246,7 +245,7 @@ $::CONN->user_send ("$DIR{$sym}[1]"); } } elsif ((ord 'a') <= $uni && $uni <= (ord 'z')) { - $self->{completer}->invoke_key_down ($ev); + $self->{completer}->inject_key_down ($ev); $self->{completer}->show; } else { return 0; @@ -627,10 +626,11 @@ $self->{entry}->set_text (""); } -sub invoke_key_down { +sub inject_key_down { my ($self, $ev) = @_; - $self->{entry}->emit (key_down => $ev) + $self->{entry}->grab_focus; + $self->{entry}->emit (key_down => $ev); } sub update_labels {