# DTextEntry:OnEnter

- **Ortam:** İstemci, Menü
- **İngilizce aslı:** https://wiki.facepunch.com/gmod/DTextEntry:OnEnter
- **Çeviri tarihi:** 2025-09-08

```lua
DTextEntry:OnEnter( string value )
```

## Açıklama

Bir [DTextEntry](https://gmod.tr/wiki/DTextEntry) üzerinde enter tuşuna basıldığında çağrılır.

> **NOT:** [DTextEntry:IsEditing](https://gmod.tr/wiki/DTextEntry:IsEditing) bu geri çağırımda hala true değerini döndürecektir!

## Argümanlar

1. [string](https://gmod.tr/wiki/string) **value**: [DTextEntry](https://gmod.tr/wiki/DTextEntry)'nin mevcut metni

### Örnek

```lua
local TextEntry = vgui.Create( "DTextEntry" )

function TextEntry:OnEnter( value )
    print("You typed: ", value)
end
```

### Örnek

```lua
local TextEntry = vgui.Create( "DTextEntry" )

TextEntry.OnEnter = function( self )		-- Alternatif yöntem, DTextEntry nesnesini verir.
    print("You typed: ", self:GetValue()) 	-- Metni almak için self:GetValue() kullanın.
end
```

**Çıktı:** DTextEntry'ye yazılan herhangi bir metin, enter tuşuna basıldığında konsolda görünür.

- [GMod Wiki ana sayfası](https://gmod.tr/wiki)

---

[Tüm sunucular](https://gmod.tr/) · [GmodTR Launcher](https://gmod.tr/launcher) · [Rehber](https://gmod.tr/rehber) · [GMod Wiki](https://gmod.tr/wiki) · [GmodTR nedir?](https://gmod.tr/hakkinda) · [Sunucu ekle](https://gmod.tr/sunucu-ekle) · [Discord](https://discord.gg/gmodtr)

Kaynak: https://gmod.tr/wiki/DTextEntry:OnEnter
