… | |
… | |
165 | }); |
165 | }); |
166 | $::BIND_EDITOR->start; |
166 | $::BIND_EDITOR->start; |
167 | $::BIND_EDITOR->show; |
167 | $::BIND_EDITOR->show; |
168 | } elsif ($sym == CFClient::SDLK_INSERT && not ($mod & CFClient::KMOD_CTRL)) { |
168 | } elsif ($sym == CFClient::SDLK_INSERT && not ($mod & CFClient::KMOD_CTRL)) { |
169 | $::BIND_EDITOR->stop; |
169 | $::BIND_EDITOR->stop; |
170 | $::BIND_EDITOR->ask_for_bind (1); |
170 | $::BIND_EDITOR->ask_for_bind_and_commit; |
171 | $::BIND_EDITOR->hide; |
171 | $::BIND_EDITOR->hide; |
172 | } elsif (my $bind_cmd = $::CFG->{bindings}->{$mod}->{$sym}) { |
172 | } elsif (my $bind_cmd = $::CFG->{bindings}->{$mod}->{$sym}) { |
173 | $::CONN->user_send ($_) for @$bind_cmd; |
173 | $::CONN->user_send ($_) for @$bind_cmd; |
174 | } elsif ((ord 'a') <= $uni && $uni <= (ord 'z')) { |
174 | } elsif ((ord 'a') <= $uni && $uni <= (ord 'z')) { |
175 | $self->{completer}->key_down ($ev); |
175 | $self->{completer}->key_down ($ev); |