From 6b778feb31cfb49096cca2d8b047b6628d56d128 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Wed, 13 Jan 2016 21:55:20 +0100 Subject: [PATCH] Avoid selecting profile suggestion if Ctrl+Enter is pressed If I was typing a queet and ended with a mention (@theru) it listed several nicknames matching '%theru%', such as 'anoTHERUser'. When I send the queet with the short command Ctrl+Enter it chose @anotheruser and my friend theru was ever so sad not to receive the notification :( --- js/qvitter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/qvitter.js b/js/qvitter.js index 092f4e7..8f27123 100644 --- a/js/qvitter.js +++ b/js/qvitter.js @@ -2776,7 +2776,7 @@ $('body').on('keydown', '.queet-box-syntax', function(e) { if($(this).siblings('.mentions-suggestions').children('div').length > 0) { // enter or tab - if (e.keyCode == '13' || e.keyCode == '9') { + if (!e.ctrlKey && (e.keyCode == '13' || e.keyCode == '9')) { e.preventDefault(); useSelectedMention($(this)); }