Class sh::actions::KeyShortcutPredicate

class sh::actions::KeyShortcutPredicate : public sh::actions::Predicate

Sets a keyboard shortcut.

Public Functions

KeyShortcutPredicate(QKeySequence shortcut, bool triggersOnCurrentDirectoryLevel)
void prepare(ActionInstantiation *instantiation)

Prepares the evaluation.

bool evaluate(ActionInstantiation *instantiation)

Evaluates if the predicate is solved.

If it returns true, the evaluation proceeds and eventually succeeds. If false, it stops at this place.

Private Members

QKeySequence shortcut
bool triggersOnCurrentDirectoryLevel