Skip to content

Commit 8cb6346

Browse files
committed
Translate english in Key Codes section
1 parent e12633e commit 8cb6346

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Diff for: src/v2/guide/events.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ Vue는 [`addEventListener`의 `passive` option](https://developer.mozilla.org/en
226226
키보드 이벤트를 청취할 때, 종종 공통 키 코드를 확인해야 합니다. Vue는 키 이벤트를 수신할 때 `v-on`에 대한 키 수식어를 추가할 수 있습니다.
227227

228228
``` html
229-
<!-- only call `vm.submit()` when the `key` is `Enter` -->
229+
<!-- `key`가 `Enter`일 때만 `vm.submit()`이 호출됩니다 -->
230230
<input v-on:keyup.enter="submit">
231231
```
232232

@@ -238,17 +238,17 @@ Vue는 [`addEventListener`의 `passive` option](https://developer.mozilla.org/en
238238

239239
위의 예제에서 핸들러는 `$event.key === 'PageDown'` 일 때에만 호출됩니다.
240240

241-
### Key Codes
241+
### 키 코드
242242

243-
<p class="tip">The use of `keyCode` events [is deprecated](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyCode) and may not be supported in new browsers.</p>
243+
<p class="tip"><code>keyCode</code> 이벤트의 사용은 <a href="https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyCode">더 이상 권장되지 않으며</a> 새로운 브라우저에서는 지원되지 않을 수도 있습니다.</p>
244244

245-
Using `keyCode` attributes is also permitted:
245+
`keyCode` 속성의 사용도 가능합니다:
246246

247247
``` html
248248
<input v-on:keyup.13="submit">
249249
```
250250

251-
Vue provides aliases for the most commonly used key codes when necessary for legacy browser support:
251+
Vue는 과거 브라우저 지원을 위해 필요 시 가장 많이 사용되는 키 코드들의 별칭(alias)들을 제공합니다.
252252

253253
- `.enter`
254254
- `.tab`

0 commit comments

Comments
 (0)