---
title: KeyPress.Result
framework: swiftui
role: symbol
role_heading: Enumeration
path: swiftui/keypress/result
---

# KeyPress.Result

A result value returned from a key-press action that indicates whether the action consumed the event.

## Declaration

```swift
enum Result
```

## Topics

### Getting the result

- [KeyPress.Result.handled](swiftui/keypress/result/handled.md)
- [KeyPress.Result.ignored](swiftui/keypress/result/ignored.md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
