gcala / pacmanlogviewer

Inspect pacman log file
GNU Lesser General Public License v3.0
13 stars 7 forks source link

Make “Ctrl+End” key combination jump to end #6

Open flying-sheep opened 4 years ago

flying-sheep commented 4 years ago

I often find myself holding down “Page down” or “Ctrl+End” because I want to see the last set of changes. It would be nice to be able to do this with one shortcut.

Something like this. On macOS the combination is different, but also standard.

shortcut = new QShortcut(QKeySequence(QKeySequence::MoveToEndOfDocument), this);
QObject::connect(shortcut, &QShortcut::activated, this, &jumpToEnd);

IDK if the default behavior has to be manually deactivated or so.