Skip to content
This repository has been archived by the owner on Sep 11, 2018. It is now read-only.

Title blank if middle-click paste used to paste title #52

Open
greenrd opened this issue Jan 12, 2013 · 1 comment
Open

Title blank if middle-click paste used to paste title #52

greenrd opened this issue Jan 12, 2013 · 1 comment

Comments

@greenrd
Copy link

greenrd commented Jan 12, 2013

When I am submitting, and I type the title or paste the title with Ctrl+V, it works; when I use middle-click to paste (a feature that only exists on Linux), the title comes up blank in the reddit submit form.

@mhweaver
Copy link

I figured out the cause for this this one yesterday: (in submit.js) the Submit button's target URL only changes on the keyPress or keyUp events (depending on the version of companion), so changes done with the mouse don't happen unless followed by a keystroke.

Possible solution: Rather than rebuild the target URL at every keystroke, either point the Submit button to some code to build the URL on the fly then redirect, or do that with the keyUp and an onClick event. That way, it would use what's actually in the title textbox, rather than what was there when its keyUp event last fired.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants