# `GSShortcutCommandProtocol validateShortcutCommand:editViewController:`

*Instance Method*

This is called right before the shortcut action is performed

## Declaration

```swift
optional func validateShortcutCommand(_ action: Selector, editViewController: GSEditViewController) -> Bool
```

```objc
- (BOOL) validateShortcutCommand:(SEL) action editViewController:(GSEditViewController *) editViewController;
```

```python
validateShortcutCommand_editViewController_(action: SEL, editViewController: GSEditViewController) -> bool
```

## Parameters

- `action` — The action to be called
- `editViewController` — The currently active tab

## Return Value

Return YES if you liked to be called at that point. Or NO if you don’t

