# \[Bug\] Blueprint Map variable with key-type 'Key'

**URL:** <https://forums.unrealengine.com/t/bug-blueprint-map-variable-with-key-type-key/386301>\
**Category:** Blueprint\
**Tags:** key, Map, container, unreal-engine, Blueprint, question\
**Created:** [February 26, 2017, 10:11pm UTC](https://forums.unrealengine.com/t/bug-blueprint-map-variable-with-key-type-key/386301 "2017-02-26T22:11:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_2bd429cb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2bd429cb](https://forums.unrealengine.com/u/anonymous_user_2bd429cb)\
**Post date:** [February 26, 2017, 10:11pm UTC](https://forums.unrealengine.com/t/bug-blueprint-map-variable-with-key-type-key/386301/1 "2017-02-26T22:11:08Z")

</div>

When adding a container variable to a blueprint of type ‘Map’ with a key-type of ‘Key’, the default values UI will allow values to be added to the container, but the key is not displayed/editable.

Steps to reproduce:

1. Launch the editor and create a new blueprint
2. Add a variable and set the container type to Map
3. Set the key type to Key (FKey), value-type doesn’t matter.
4. Compile and attempt to add an element to the default value of the type
5. Observe that the user is not presented with any UI to define the Key in the new element.

Expected Result:  
Since FKey is a hashable type, it should be a valid Dictionary key-type and the default values editor should function properly.

Thanks!

---

<div class="post-metadata">

**Author:** ![TJ\_V](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tj_v/32/1008648_2.png) [@TJ\_V](https://forums.unrealengine.com/u/TJ_V)\
**Post date:** [March 2, 2017, 6:36pm UTC](https://forums.unrealengine.com/t/bug-blueprint-map-variable-with-key-type-key/386301/2 "2017-03-02T18:36:47Z")

</div>

Hi WPennypacker,

Could you post a screenshot of exactly what you are seeing? I just did some test and I don’t believe I’m getting the same results.

---

<div class="post-metadata">

**Author:** ![TJ\_V](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tj_v/32/1008648_2.png) [@TJ\_V](https://forums.unrealengine.com/u/TJ_V)\
**Post date:** [March 6, 2017, 9:33pm UTC](https://forums.unrealengine.com/t/bug-blueprint-map-variable-with-key-type-key/386301/3 "2017-03-06T21:33:51Z")

</div>

We haven’t heard back from you in a few days, so we are marking this post as resolved for tracking purposes. If you’re still experiencing this issue, please feel free to post back here with additional information to reopen the post.

Cheers,

TJ

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2bd429cb](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2bd429cb](https://forums.unrealengine.com/u/anonymous_user_2bd429cb)\
**Post date:** [March 7, 2017, 1:53am UTC](https://forums.unrealengine.com/t/bug-blueprint-map-variable-with-key-type-key/386301/4 "2017-03-07T01:53:13Z")

</div>

Sorry for the delay, TJ.

Below is a screenshot of the issue. Notice that the Default Value tab is missing the editor for the dictionary key when the type is set to ‘Key’.

 ![128901-bug.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/7/9/579bc32fc3cd23ee4f7f3b2fe6e601c8ff695fce.jpeg)

---

<div class="post-metadata">

**Author:** ![TJ\_V](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tj_v/32/1008648_2.png) [@TJ\_V](https://forums.unrealengine.com/u/TJ_V)\
**Post date:** [March 9, 2017, 8:44pm UTC](https://forums.unrealengine.com/t/bug-blueprint-map-variable-with-key-type-key/386301/5 "2017-03-09T20:44:03Z")

</div>

Thanks for the screenshot. I was able to reproduce this and found that it’s actually a known issue that is logged as [JIRA UE-42445](https://issues.unrealengine.com/issue/UE-42445).

It has to deal with displaying hashable structs in this manor. Our developers are currently investigating.

Cheers,

TJ
