wikimedia-gadgets / twinkle

The English Wikipedia twinkle javascript helper
http://en.wikipedia.org/wiki/Wikipedia:Twinkle
Other
138 stars 152 forks source link

tag: right click -> paste should trigger tag searching/filtering #2050

Open NovemLinguae opened 1 week ago

NovemLinguae commented 1 week ago

Reported by Kline at https://en.wikipedia.org/wiki/Wikipedia_talk:Twinkle#Twinkle_does_not_update_selections_when_copy-pasting_via_right_click

Steps to reproduce

What happens?

What should happen instead?

siddharthvp commented 1 week ago

Hmm, sounds like it's listening to only keydown events. Might have to listen to drop and paste events as well.

NovemLinguae commented 1 week ago

This is probably a good-first-task then. Just need to find where the .on( 'keydown' ) is, and change it to something like .on( 'keydown', 'paste' ). It may be in the tag module, or it may be in Morebits.js. It may or may not be related to the select2 element.

nardog commented 1 week ago

How about changing keydown to input?