liteide icon indicating copy to clipboard operation
liteide copied to clipboard

撤销快捷键失效

Open ZenQy opened this issue 7 years ago • 4 comments
trafficstars

Ctrl + Y 无效,Ctrl + Shift + Z 有效。 使用环境:archlinux

ZenQy avatar Mar 09 '18 04:03 ZenQy

please download x35.1 and check. use system standard undo/redo key.

visualfc avatar Oct 24 '18 14:10 visualfc

I have the same issue, for Arch Linux, linux_amd64, X35.5-1 The default redo key is Ctrl+Shift+Z; Ctrl+Y. I even removed the Ctrl+Shift+Z; leaving it Ctrl+Y. Ctrl+Y doesn't do anything, Ctrl+Shift+Z does redo.

vendelin8 avatar Mar 15 '19 15:03 vendelin8

Actually it's very unstable now, and I don't know why. Sometimes it works, sometimes it doesn't. Not even closing liteIDE, I switch apps, switch workspace, and the functionality changes.

There's another setting that works similarly: scrolling after the last line. Sometimes it works as expected (not scrolling after, as it's my preference), but sometimes it get default).

vendelin8 avatar Jul 07 '22 17:07 vendelin8

When I hardcoded Ctrl+Y for redo in LiteIDE code, it was moving out from standard shortcuts, but still wasn't working. So I think qt handles the undo-redo list with its own shortcut. After I built qt with the following change, it works fine. https://invent.kde.org/qt/qt/qtbase/-/blob/f3b3f2b28e95c43deaabc49f4d2bbfda8c8f1204/src/gui/kernel/qplatformtheme.cpp#L219 {QKeySequence::Redo, 0, Qt::CTRL | Qt::SHIFT | Qt::Key_Z, KB_Win | KB_X11}, replaced to Ctrl+Y. So maybe it could be changed in LiteIDE somehow by changing undo-redo functionality, removing handling of the shortcuts from qt.

vendelin8 avatar Jul 25 '22 09:07 vendelin8