MCPcopy Index your code
hub / github.com/python/cpython / build_key_string

Method build_key_string

Lib/idlelib/config_key.py:203–210  ·  view source on GitHub ↗

Create formatted string of modifiers plus the key.

(self)

Source from the content-addressed store, hash-verified

201 self.build_key_string()
202
203 def build_key_string(self):
204 "Create formatted string of modifiers plus the key."
205 keylist = modifiers = self.get_modifiers()
206 final_key = self.list_keys_final.get('anchor')
207 if final_key:
208 final_key = translate_key(final_key, modifiers)
209 keylist.append(final_key)
210 self.key_string.set(f"<{'-'.join(keylist)}>")
211
212 def get_modifiers(self):
213 "Return ordered list of modifiers that have been selected."

Callers 2

final_key_selectedMethod · 0.95
test_build_key_stringMethod · 0.80

Calls 6

get_modifiersMethod · 0.95
translate_keyFunction · 0.85
getMethod · 0.45
appendMethod · 0.45
setMethod · 0.45
joinMethod · 0.45

Tested by 1

test_build_key_stringMethod · 0.64