hamsket
hamsket copied to clipboard
Paste in Hangouts always inserts at beginning of message
Steps to reproduce
- open Hamsket
- open Hangouts (sign in as needed)
- open chat in Google Hangouts
- type something in the chat box
- copy random text from somewhere
- place text cursor anywhere other than the beginning of the message
- ctrl-v or right click + paste text into the chat box
Expected behavior
paste inserts text starting at the current position of the text cursor
Actual behavior
paste inserts text at the beginning of the message regardless of where the text cursor is
ENVIRONMENT
Hamsket: v0.6.0
OS: Linux (Ubuntu 20.04 LTS)
Arch: x64
BuildVersion: d78a4ea (grafted, HEAD, tag: nightly, origin/master) Sat, 2 May 2020 16:38:47 -0700
Does this happen upstream: unknown?
Issue exists on Windows as well. I also tested on rambox community 0.7.5 -- it does not occur there. Occurs when using keyboard or right click + paste.
Hamsket: v0.6.0 OS: Windows 10 (2004 19041.388) Arch: x64 BuildVersion: https://github.com/TheGoddessInari/hamsket/commit/518e6b04289904d44bbb532ff58247c3e7f2a5e7 Does this happen upstream: Does not occur in Rambox Community 0.7.5
Editing my hangouts service and changing the OS override to Windows fixed this for me. I believe the default UA string in this instance is Linux (saw mention of X11 in the default UA string). For anyone having this issue, try editing your hangouts service: Advanced>User Agent Tab> Override OS dropdown menu
and set it to your OS family.
I also tested adding hangouts as a custom service using a custom UA string: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36 Edg/84.0.522.40
.
Copy paste works correctly in this custom service instance. I don't know what all if any functionality is different using the custom service. But it's another potential workaround.
This should get fixed with 4508c9e.