@@ -915,8 +915,7 @@ def rebuild_tab_search(self):
915915 def context_menus (self ):
916916 return {'graph' : self ._ctx_graph_menu , 'nodes' : self ._ctx_node_menu }
917917
918- @staticmethod
919- def question_dialog (text , title = 'Node Graph' ):
918+ def question_dialog (self , text , title = 'Node Graph' ):
920919 """
921920 Prompt node viewer question dialog widget with "yes", "no" buttons.
922921
@@ -927,17 +926,18 @@ def question_dialog(text, title='Node Graph'):
927926 Returns:
928927 bool: true if user click yes.
929928 """
929+ self .clear_key_state ()
930930 return BaseDialog .question_dialog (text , title )
931931
932- @staticmethod
933- def message_dialog (text , title = 'Node Graph' ):
932+ def message_dialog (self , text , title = 'Node Graph' ):
934933 """
935934 Prompt node viewer message dialog widget with "ok" button.
936935
937936 Args:
938937 text (str): dialog text.
939938 title (str): dialog window title.
940939 """
940+ self .clear_key_state ()
941941 BaseDialog .message_dialog (text , title )
942942
943943 def load_dialog (self , current_dir = None , ext = None ):
@@ -951,6 +951,7 @@ def load_dialog(self, current_dir=None, ext=None):
951951 Returns:
952952 str: selected file path.
953953 """
954+ self .clear_key_state ()
954955 ext = '*{} ' .format (ext ) if ext else ''
955956 ext_filter = ';;' .join ([
956957 'Node Graph ({}*json)' .format (ext ), 'All Files (*)'
@@ -971,6 +972,7 @@ def save_dialog(self, current_dir=None, ext=None):
971972 Returns:
972973 str: selected file path.
973974 """
975+ self .clear_key_state ()
974976 ext_label = '*{} ' .format (ext ) if ext else ''
975977 ext_type = '.{}' .format (ext ) if ext else '.json'
976978 ext_map = {'Node Graph ({}*json)' .format (ext_label ): ext_type ,
0 commit comments