ThrivingKings/Apprise

Input Not Registered when using Middle Click to Paste

Closed this issue · 2 comments

When using the dialogs that accept input on Linux. If you highlight some text on the page then use middle click to paste content into the box, Apprise will return False rather than the pasted content. Using Ctrl+V to paste the text works as expected. This can be tested using the "What is your name?" example on the AppRise website and is found in both Chrome and Firefox.

It is due to the code using keyup. I have fixed the issue by using .bind instead....eg

$('.aTextbox').keyup(function()
    { aText = $(this).val(); });

just change it to

$('.aTextbox').bind('keyup blur', function()
    { aText = $(this).val(); });

This is working for me as well. Thanks for the fix! :D