liteide
liteide copied to clipboard
撤销快捷键失效
Ctrl + Y 无效,Ctrl + Shift + Z 有效。 使用环境:archlinux
please download x35.1 and check. use system standard undo/redo key.
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.
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).
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.