Skip to content

Commit

Permalink
adjust shortcut context
Browse files Browse the repository at this point in the history
fix problem mentioned in dbr#11
  • Loading branch information
NateScarlet committed Aug 18, 2017
1 parent 603beee commit 743da1e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion menu.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# -*- coding: UTF-8 -*-
import tabtabtab

WINDOW_CONTEXT = 0
APPLICATION_CONTEXT = 1
DAG_CONTEXT = 2

m_edit = nuke.menu('Nuke').findItem('Edit')
m_edit.addCommand('Tabtabtab', tabtabtab.main, 'Tab')
m_edit.addCommand('Tabtabtab', tabtabtab.main, 'Tab', shortcutContext=DAG_CONTEXT)

0 comments on commit 743da1e

Please sign in to comment.