Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shift+Del doesnot cut to clipboard #1325

Closed
cidious opened this issue Oct 21, 2020 · 7 comments
Closed

Shift+Del doesnot cut to clipboard #1325

cidious opened this issue Oct 21, 2020 · 7 comments

Comments

@cidious
Copy link

cidious commented Oct 21, 2020

Trilium 0.44.9 for Linux

Pressing Shift+Del on text selection does not cut it to clipboard, just deletes the selection.
Although Shift+Ins inserts the clipboard content OK.

BTW both Ctrl+X and Ctrl+V work OK.

There is nothing relevant in the log file.

Is it possible to fix the Shift+Del behavior?

Thank you.

@zadam
Copy link
Owner

zadam commented Oct 22, 2020

Hi, this seems to be caused by CKEditor not recognizing this keyboard shortcuts so it would have to be fixed there first.

Other input fields not controlled by CKEditor (e.g. note title) seem to behave correctly.

@cidious
Copy link
Author

cidious commented Oct 22, 2020

Hi, thanks for the answer,

well it's weird because the official CKEditor's documentation says it should support this keystroke:
https://ckeditor.com/docs/ckeditor4/latest/features/shortcuts.html

Cut, Copy and Paste
    Ctrl+X, Shift+Del – Cuts a text fragment to clipboard.

@zadam
Copy link
Owner

zadam commented Oct 22, 2020

The docs refer to CKEditor 4 while Trilium uses CKEditor 5 which is complete reimplementation so I wouldn't be surprised if there are bugs/omissions compared to v4.

@cidious
Copy link
Author

cidious commented Jan 12, 2021

Just read the docs on 5 and realized that they removed this keystroke which gets me really surprised.
Any professional text editor either supports these (Shift+Del, Ctrl+Ins, Shift+Ins), or allows to map keys.
Is it possible to map this keystroke?

@cidious
Copy link
Author

cidious commented Jan 14, 2021

tried to change the Keyboard Shortcuts in the Options: cutNotesToClipboard: Shift+Delete
No luck. It keeps using Ctrl+X.

@zadam
Copy link
Owner

zadam commented Jan 14, 2021

Hi, cutNotesToClipboard refers to a tree operation (cutting whole notes into clipboard), not to text editing.

Currently, it is not possible to bind custom text editor keyboard shortcuts.

@meichthys
Copy link
Collaborator

Trilium has entered maintenance mode. Future enhancements will be addressed in TrilumNext: TriliumNext/Notes#100

@meichthys meichthys closed this as not planned Won't fix, can't repro, duplicate, stale May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants