def test_builtin_keys_have_precedence_over_keychain_if_no_keychain_started(self):
self.km.bind('z', 'impossible action', context='list2') # This should go to an Edit widget
self.mainw.focus_position = 1 # Focus list2
self.press_key('z')
self.assert_current_keychain()
self.assert_action(exp_action=None, exp_count=0, exp_widget=None)
self.assert_active_keychains()
self.assertEqual(self.listw2.focus.edit_text, 'z')
评论列表
文章目录