• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed Cut via Shift + Delete doesn't work in the text editor

Affected version
Beta on Xenforo.com

Stuart Wright

Well-known member
#1
Highlight some text in the editor, press Shift+ Delete and I would expect the text to be deleted from the editor and placed into the clipboard so it can be pasted elsewhere.
However, while it is deleted, it is not placed into the clipboard.
Right click -> Cut works. So it looks like a keyboard shortcut issue.
Tested on Xenforo.com using Chrome and Firefox for Windows 10.
 

katsulynx

Well-known member
#2
Might be that they (whoever did the shortcuts) forgot it? As far as I know, the more common shortcut is CTRL+ X for cutting.
 
Last edited:

Chris D

XenForo developer
Staff member
#3
Shift + Del?

It's the first time I've heard of that. I'd only vaguely heard of Ctrl + Del for cutting, but of course the fairly universal standard is Ctrl + X for cutting (because then it's adjacent to Ctrl + C for copying and Ctrl + V for pasting).

Does Ctrl + Del work?

https://en.wikipedia.org/wiki/Table_of_keyboard_shortcuts#General_shortcuts

Judging by this, the only shortcuts I'd expect us to support for cutting would be Ctrl + X or Ctrl + Del on Windows.
 

katsulynx

Well-known member
#6
@Snog that reference is for files though. You can hardly delete a text and move it to the recycle bin. ;) Either way, Shift + Delete also cuts text in MS Notepad on Win10, so I guess it's not an uncommon functionality, although uncommonly used.
 

Chris D

XenForo developer
Staff member
#7
I've just moved over to my Windows machine to check it.

Shift + Del does indeed work in Windows for cutting text in pretty much all apps I tried. Ctrl + Del doesn't, so that leads me to believe that Wikipedia is wrong, in this case.

I can confirm that some rich text editors support it, some don't. This is essentially entirely a Froala issue so all we can do at this point is log it and see if they wish to make any changes here.

https://github.com/froala/wysiwyg-editor/issues/2188
 
Last edited:

Stuart Wright

Well-known member
#8
I've just moved over to my Windows machine to check it.

Shift + Del does indeed work in Windows for cutting text in pretty much all apps I tried. Ctrl + Del doesn't, so that leads me to believe that Wikipedia is wrong, in this case.

I can confirm that some rich text editors support it, some don't. This is essentially entirely a Froala issue so all we can do at this point is log it and see if they wish to make any changes here.

https://github.com/froala/wysiwyg-editor/issues/2188
Thanks. I reported it because it works in XF1.
 

Sim

Well-known member
#9
Yeah, those of us who are old enough to predate the Microsoft Ctrl-C/V/X "standard" still use Shift-DEL to cut and Shift-INS to paste because it was the standard before MS came along and ruined it for everyone.
 

Stuart Wright

Well-known member
#10
Shift + Del?

It's the first time I've heard of that.
You're not 'old school' yet, Chris :) As someone who has used Windows for coding since it replaced DOS, I do use Ctrl + C and Ctrl + V as standard, but also SHIFT + Delete. It's one of those muscle memory things done without thinking depending on where your fingers are located at the time.
 

Chris D

XenForo developer
Staff member
#11
Just to keep you all up to date, Froala has fixed this for their next release. We'll mark this as fixed and advise which XF version will include it once they've released it and we've updated to that.
 

Sim

Well-known member
#13
XF 2.0 Beta 3 includes Froala 2.6.6 so Shift + Del should now work as a "Cut" shortcut.
Yes it does - although I was finding some quirks in that the second thing I cut wasn't being saved and it kept pasting the first thing, but now I can't reproduce it so it may have just been a thing.