---
title: "hasScrollToKeyAction"
description: "Returns whether the node defines the ability to scroll to an item identified by a key, such as
[LazyColumn][androidx.compose.foundation.lazy.LazyColumn] or
[LazyRow][androidx.compose.foundation.lazy.LazyRow]."
type: "function"
---

<div class='type'>Function</div>


<a id='references'></a>
<div class='sourceset sourceset-common'>Common</div>


```kotlin
fun hasScrollToKeyAction() =
    hasKey(SemanticsActions.ScrollToIndex).and(hasKey(SemanticsProperties.IndexForKey))
```


Returns whether the node defines the ability to scroll to an item identified by a key, such as
`LazyColumn` or
`LazyRow`.



