HenriAugusto / completion-plugin

Completion for Pure Data
BSD 3-Clause "New" or "Revised" License
19 stars 1 forks source link

Using the ctrl+space shorcut the "space" is input in the box #26

Closed HenriAugusto closed 4 years ago

HenriAugusto commented 4 years ago

You can set the plugin hotkey to something like "w" to better visualize it. The "w" will be input into the box.

HenriAugusto commented 4 years ago

Problem:

  1. User press hotkey and instantly we go to
  2. ::completion::trigger
  3. which calls ::completion::popup_draw
  4. which calls bind .pop.f.lb {::completion::lb_keyrelease %K %A}
  5. pop up appears
  6. user release keys
  7. this calls ::completion::lb_keyrelease because of the KeyRelease event

By the way that problem happens since i've refactored the plugin. But since Tab (old hotkey) wasn't used by PD you wouldn't notice it

HenriAugusto commented 4 years ago

Also, we need a break

bind "completion-plugin" <$completion::config(hotkey)> {
   ::completion::trigger;
   break;
}
HenriAugusto commented 4 years ago

Fixed in a99b4c5.