---
name: "s3dw_handle_key"
section: "3"
platform: "linux"
package: "s3d-doc"
version: "0.2.2.1-7"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/s3dw_handle_key"
---

# s3dw\_handle\_key(3)

handle key input on widget

## NAME

s3dw\_handle\_key - handle key input on widget

## SYNOPSIS

```
#include <s3dw.h>
```

**int s3dw\_handle\_key(const struct s3d\_evt \****event***);**

## DESCRIPTION

This is somehow useful to call in your keyhandler functions if you want to have input-boxes work. ;)

```
 // way 1:
 s3d_set_callback(S3D_EVENT_KEY,s3dw_handle_key);
 // way 2:
 ...
 void key(struct s3d_evt *evt)
 {
         s3dw_handle_key(evt);
         ....
         // your own keyhandler code
         ...
 }
 ....
 s3d_set_callback(S3D_EVENT_KEY,key);
```

## AUTHOR

**Simon Wunderlich**

Author of s3d
