--- deliantra/Deliantra-Client/DC/MapWidget.pm 2006/05/27 20:46:54 1.40 +++ deliantra/Deliantra-Client/DC/MapWidget.pm 2006/05/29 18:33:23 1.42 @@ -41,9 +41,7 @@ (my $data = $command) =~ s/\\//g; $tooltip =~ s/^\s+//; - $tooltip = "$data\n\n$tooltip"; - $tooltip =~ s/\s+$//; $self->{completer}{command}{$command} = [$data, $tooltip, $widget, $cb, ++$self->{command_id}]; @@ -138,7 +136,7 @@ $::CONN->user_send ($self->{completer}{last_command}) if exists $self->{completer}{last_command}; } elsif ($uni == ord "\t") { - # TODO: toggle inventory + $::INV_WINDOW->toggle_visibility; } elsif ($sym == CFClient::SDLK_KP_PLUS || $uni == ord "+") { $::CONN->user_send ("rotateshoottype +"); } elsif ($sym == CFClient::SDLK_KP_MINUS || $uni == ord "-") { @@ -159,7 +157,7 @@ } else { $::CONN->user_send ("$DIR{$sym}[1]"); } - } elsif ($ev->{unicode}) { + } elsif ((ord 'a') <= $uni && $uni <= (ord 'z')) { $self->{completer}->key_down ($ev); $self->{completer}->show; }