[escher] Handle copy/cut event on selectable table view

This commit is contained in:
Émilie Feral
2018-06-06 13:51:52 +02:00
parent d56013ef17
commit 24c9549866
28 changed files with 79 additions and 62 deletions

View File

@@ -85,11 +85,6 @@ bool ValuesController::handleEvent(Ion::Events::Event event) {
if (selectedRow() == -1) {
return header()->handleEvent(event);
}
if (event == Ion::Events::Copy && selectedRow() > 0 && selectedColumn() > 0) {
EvenOddBufferTextCell * cell = (EvenOddBufferTextCell *)selectableTableView()->selectedCell();
Clipboard::sharedClipboard()->store(cell->text());
return true;
}
return false;
}