Skip to content

Commit 3b358d8

Browse files
committed
Updated status bar when text is copied
1 parent 8f5ad8a commit 3b358d8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/fhex.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -556,6 +556,7 @@ void Fhex::keyPressEvent(QKeyEvent *event) {
556556
if ((event->key() == Qt::Key_Space) && QApplication::keyboardModifiers().testFlag(Qt::ControlModifier)) {
557557
pair<qint64,qint64> offsets = this->qhex->selectedOffsets();
558558
QApplication::clipboard()->setText(QString::fromWCharArray(this->hexEditor->getCurrentDataAsWString(offsets.first, offsets.second - offsets.first).c_str()));
559+
this->statusBar.setText("Text copied");
559560
} else if (event->key() == Qt::Key_F5) {
560561
this->loadFile(this->hexEditor->getCurrentPath().c_str());
561562
} else if ((event->key() == Qt::Key_Right) && QApplication::keyboardModifiers().testFlag(Qt::AltModifier)) {

0 commit comments

Comments
 (0)