{"action":"created","issue":{"url":"https://api.github.com/repos/HabitRPG/habitica/issues/10117","repository_url":"https://api.github.com/repos/HabitRPG/habitica","labels_url":"https://api.github.com/repos/HabitRPG/habitica/issues/10117/labels{/name}","comments_url":"https://api.github.com/repos/HabitRPG/habitica/issues/10117/comments","events_url":"https://api.github.com/repos/HabitRPG/habitica/issues/10117/events","html_url":"https://github.com/HabitRPG/habitica/issues/10117","id":304024932,"number":10117,"title":"Ctrl-V in a chat message can cause it to send","user":{"login":"Alys","id":1495809,"avatar_url":"https://avatars0.githubusercontent.com/u/1495809?v=4","gravatar_id":"","url":"https://api.github.com/users/Alys","html_url":"https://github.com/Alys","followers_url":"https://api.github.com/users/Alys/followers","following_url":"https://api.github.com/users/Alys/following{/other_user}","gists_url":"https://api.github.com/users/Alys/gists{/gist_id}","starred_url":"https://api.github.com/users/Alys/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alys/subscriptions","organizations_url":"https://api.github.com/users/Alys/orgs","repos_url":"https://api.github.com/users/Alys/repos","events_url":"https://api.github.com/users/Alys/events{/privacy}","received_events_url":"https://api.github.com/users/Alys/received_events","type":"User","site_admin":false},"labels":[{"id":283308918,"url":"https://api.github.com/repos/HabitRPG/habitica/labels/help%20wanted","name":"help wanted","color":"0e8a16","default":true},{"id":54728440,"url":"https://api.github.com/repos/HabitRPG/habitica/labels/priority:%20medium","name":"priority: medium","color":"e99695","default":false},{"id":709194816,"url":"https://api.github.com/repos/HabitRPG/habitica/labels/section:%20Guilds","name":"section: Guilds","color":"c5def5","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-10T00:54:52Z","updated_at":"2018-03-14T05:36:09Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"We've had two reports indicating that hitting Ctrl-V to paste text into a chat message can cause the message to be sent. \r\n\r\nThe first was from donotgogentle (65be576c-c412-41c7-a31f-94994c8c4fc6) about six days ago:\r\n\r\n_\"Sorry for the double post. Whenever I use Ctrl+V my post gets sent automatically (happens in all guilds) without my clicking 'Send'\"_\r\n\r\nThey never responded to my request for more information but I'll chase them about it now that we've had a second report. Here's what I asked: \"Is that on both Firefox and Chrome? Are you using Windows or Mac OS or Linux? Does it still happen if you deliberately copy less than a full line of text? E.g., type a few words in a text editor, select only some of the words from the **middle** of the line, copy that, then paste it.\"\r\n\r\nThe second report is from kAbi, child of Light (7adf6ada-3c05-4054-b5df-fa7d49d3b9eb) today:\r\n\r\n_\"in guilds like the short and long term accountability guilds and in the tally board of the duelling grounds I have to write reports and for each bullet point I will use an emoji. I use the pc, so I will copy in my emoji with ctrl+V and then type my message, then hit enter 2 times, then hit ctrl+v to copy in my emoji (e.g white_check_mark for when the task got done, or x for when the task didn't got done) repeat._\r\n\r\n_\"it often happens, and I mean really often, that the message is getting send before I finish writting my whole report._\r\n\r\n_\"I'm aware there is the shortcut to hit ctrl+enter to send the message. now I'm wondering, whether I'm just too fast in typing, and so when I hit enter two times to create the space needed to separate the paragraph and then hit ctrl+v maybe I'm too fast in hitting ctrl and my computer interprets it as me hitting enter+ctrl, hence sends the message._\r\n\r\n_\"though, this all happens so fast, that usually I'm in the midst of the sentence I wanted to write when suddenly my message is gone from the writing space because it got posted. usually then a part of what I intended to write will appear in the writting window, the starting won't be there, probably because during that time it was sending the message._\r\n\r\n_\"I don't know how to hinder this from happening. I tried typing slower and it seemed to work, but I'm not a patient person and a fast typer. and this is happening sooo often I really wonder whether there might be a bug happening. Am I just too clumsy?\"_\r\n\r\n kAbi, child of Light  says they are using Firefox version 58.0.2, Windows 10 Version 1709\r\n"},"comment":{"url":"https://api.github.com/repos/HabitRPG/habitica/issues/comments/372910139","html_url":"https://github.com/HabitRPG/habitica/issues/10117#issuecomment-372910139","issue_url":"https://api.github.com/repos/HabitRPG/habitica/issues/10117","id":372910139,"user":{"login":"Cappycot","id":5762946,"avatar_url":"https://avatars2.githubusercontent.com/u/5762946?v=4","gravatar_id":"","url":"https://api.github.com/users/Cappycot","html_url":"https://github.com/Cappycot","followers_url":"https://api.github.com/users/Cappycot/followers","following_url":"https://api.github.com/users/Cappycot/following{/other_user}","gists_url":"https://api.github.com/users/Cappycot/gists{/gist_id}","starred_url":"https://api.github.com/users/Cappycot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cappycot/subscriptions","organizations_url":"https://api.github.com/users/Cappycot/orgs","repos_url":"https://api.github.com/users/Cappycot/repos","events_url":"https://api.github.com/users/Cappycot/events{/privacy}","received_events_url":"https://api.github.com/users/Cappycot/received_events","type":"User","site_admin":false},"created_at":"2018-03-14T05:36:09Z","updated_at":"2018-03-14T05:36:09Z","author_association":"NONE","body":"[Confirmed this on Google Chrome 60.0.3112.113 64-bit on Ubuntu 16.04 LTS.](https://drive.google.com/open?id=1ssk55GFSm5M6uQBaMMFs4TBGPveT-OoF)\r\n\r\nWhile I've been looking for ways to make my first contribution, I have zero experience in this (lol). I speculate that this is more of a quality-of-life issue as what happens (to at least me and kAbi, child of Light) is that we fail to let go of the Ctrl in Ctrl+V before we hit Enter. The script \"caches\" what exists in the textbox at that precise moment, and ignores anything else we type and just sends whatever was written at the moment of Enter being hit.\r\n\r\nMy question is what do we want to do about this? Do we want to make Ctrl+Enter create a pop-up confirmation before sending the text, or do we want to do something else with Ctrl+Enter like waiting for a set period of time to make sure the user isn't still typing in the box?"}}
{"actor":{"display_login":"Cappycot"}}