Page MenuHomePhabricator

Please do not let the cursor jump to the top of the editing area when using Shift key after pasting (loss of focus?)
Open, Needs TriagePublic

Description

@Pbsouthwood has diligently attempted to figure out an extremely annoying bug (or two?). The main symptom is that when certain common actions are taken, the cursor leaves the paragraph that you're typing and jumps to the top of the editing window. These actions include:

  1. using the Shift key
  2. pasting something into a message

You can see his efforts and real-time documentation of the results beginning at https://en.wikipedia.org/wiki/User_talk:Whatamidoing_(WMF)#c-Pbsouthwood-20220825173600-Problem_with_add_topic_tool

This appears in Firefox on both Windows 10 and Windows 11. I have occasionally seen something similar in Firefox on my Mac, but much less frequently and only while pasting.

Event Timeline

It may be the same bug but my experience differs in that it happens to me after a copy-paste and possibly differently after cut-paste of simple text from within the open edit window. When the cursor jumps it cannot be persuaded to stay in the right place for further editing if that editing includes a shift key as the first keystroke. I have to add the text at the top and later cut and paste it to where it should be. It is happening on Firefox with both windows 10 and 11. Once it has started, I have not found any way to make it stop other than cancelling the edit and starting again.
It happens with the new section tool (A new way to start topics...) and with the reply link.

As a temporary workaround, you can turn off Enable editing tools in source mode in your preferences (and switch to source mode if you normally use DiscussionTools’ visual mode). It’s a more bare-bones experience, but it should be free of this bug (or if it isn’t, that’s the fault of Firefox or Windows, not of DiscussionTools).

Pbsouthwood renamed this task from Please do not let the cursor jump to the top of the editing area when using Shift key or pasting (loss of focus?) to Please do not let the cursor jump to the top of the editing area when using Shift key after pasting (loss of focus?).Sep 1 2022, 4:16 PM

@Tacsipacsi, thanks for the suggestion. I generally just create the new section title, add content until it goes wonky, save and continue editing using the regular editor which works fine