Peekmo / atom-autocomplete-php

Autocomplete for PHP in atom editor
MIT License
136 stars 34 forks source link

"Goto key" conflict #357

Open kamzata opened 7 years ago

kamzata commented 7 years ago

On Linux (KDE Plasma DE), shortcuts available for Goto key are already assigned. Both CMD + Left Click and CTRL + Left Click enable multiline selection function while ALT + Left Click is used by KDE to move the window. Of course I'd be able to change KDE shortcut binded to ALT key but I don't want to. Would be great if you could add something like Right ALT + Left Click.

cvonz commented 7 years ago

You can set you "goto key"; first add the option string from "packages/atom-autocomplete-php/lib/peekmo-php-atom-autocomplete.coffee" into gotoKey:enum, after, you need to add into isGotoKeyPressed event ('packages/atom-autocomplete-php/lib/goto/abstract-provider.coffee') for config the new "Goto key".

"packages" is the atom package folder.

kamzata commented 7 years ago

Thanks cvonz. The tough part seems to be what event return for Right ALT key since there's no event.altRightkey or something. Anyway, I can't still understand why both CMD + Left Click and CTRL + Left Click grab the same multiline selection function. Do you know if it is the same on Windows? I haven't tried yet.