diff options
author | alattalatta <urty5656@gmail.com> | 2022-01-30 20:08:17 +0900 |
---|---|---|
committer | Kyle <mkitigy@gmail.com> | 2022-02-14 22:37:05 +0900 |
commit | 90bd95a04f42c46d7d2d849d986e0e8cc78185c7 (patch) | |
tree | d800b5110eb513322af57059f0a42cfe5525aad5 /files/ko/web/api/window | |
parent | fe52ecac583d6ab1c1b717f0315d118a5fff7432 (diff) | |
download | translated-content-90bd95a04f42c46d7d2d849d986e0e8cc78185c7.tar.gz translated-content-90bd95a04f42c46d7d2d849d986e0e8cc78185c7.tar.bz2 translated-content-90bd95a04f42c46d7d2d849d986e0e8cc78185c7.zip |
Add copy, cut, and paste events
Diffstat (limited to 'files/ko/web/api/window')
-rw-r--r-- | files/ko/web/api/window/copy_event/index.md | 62 | ||||
-rw-r--r-- | files/ko/web/api/window/cut_event/index.md | 62 | ||||
-rw-r--r-- | files/ko/web/api/window/paste_event/index.md | 61 |
3 files changed, 185 insertions, 0 deletions
diff --git a/files/ko/web/api/window/copy_event/index.md b/files/ko/web/api/window/copy_event/index.md new file mode 100644 index 0000000000..e3cfec3ae6 --- /dev/null +++ b/files/ko/web/api/window/copy_event/index.md @@ -0,0 +1,62 @@ +--- +title: 'Window: copy 이벤트' +slug: Web/API/Window/copy_event +tags: + - API + - Clipboard API + - Event + - Reference + - Web + - Window + - copy +browser-compat: api.Window.copy_event +translation_of: Web/API/Window/copy_event +--- +{{APIRef}} + +**`copy`** 이벤트는 사용자가 브라우저의 사용자 인터페이스를 통해 복사했을 때 발생합니다. + +<table class="properties"> + <tbody> + <tr> + <th scope="row">버블링</th> + <td>예</td> + </tr> + <tr> + <th scope="row">취소 가능</th> + <td>예</td> + </tr> + <tr> + <th scope="row">인터페이스</th> + <td>{{domxref("ClipboardEvent")}}</td> + </tr> + <tr> + <th scope="row">이벤트 처리기 속성</th> + <td>{{domxref("HTMLElement/oncopy", "oncopy")}}</td> + </tr> + </tbody> +</table> + +`copy` 이벤트의 원 대상은 복사 동작의 대상인 {{domxref("Element")}}입니다. {{domxref("Window")}}에서 수신할 경우 캡처 또는 버블링 단계의 이벤트를 받게 됩니다. 이벤트에 대한 자세한 정보는 [Element: copy 이벤트](/ko/docs/Web/API/Element/copy_event)에서 확인하세요. + +## 예제 + +```js +window.addEventListener('copy', (event) => { + console.log('복사 동작 실행') +}); +``` + +## 명세 + +{{Specifications}} + +## 브라우저 호환성 + +{{Compat}} + +## 같이 보기 + +- 관련 이벤트: {{domxref("Window/cut_event", "cut")}}, {{domxref("Window/paste_event", "paste")}} +- {{domxref("Element")}}를 대상으로 한 같은 이벤트: {{domxref("Element/copy_event", "copy")}} +- {{domxref("Document")}}를 대상으로 한 같은 이벤트: {{domxref("Document/copy_event", "copy")}} diff --git a/files/ko/web/api/window/cut_event/index.md b/files/ko/web/api/window/cut_event/index.md new file mode 100644 index 0000000000..9ce458af97 --- /dev/null +++ b/files/ko/web/api/window/cut_event/index.md @@ -0,0 +1,62 @@ +--- +title: 'Window: cut 이벤트' +slug: Web/API/Window/cut_event +tags: + - API + - Clipboard API + - Cut + - Event + - Reference + - Web + - Window +browser-compat: api.Window.cut_event +translation_of: Web/API/Window/cut_event +--- +{{APIRef}} + +**`cut`** 이벤트는 사용자가 브라우저의 사용자 인터페이스를 통해 복사했을 때 발생합니다. + +<table class="properties"> + <tbody> + <tr> + <th scope="row">버블링</th> + <td>예</td> + </tr> + <tr> + <th scope="row">취소 가능</th> + <td>예</td> + </tr> + <tr> + <th scope="row">인터페이스</th> + <td>{{domxref("ClipboardEvent")}}</td> + </tr> + <tr> + <th scope="row">이벤트 처리기 속성</th> + <td>{{domxref("HTMLElement/oncut", "oncut")}}</td> + </tr> + </tbody> +</table> + +`cut` 이벤트의 원 대상은 복사 동작의 대상인 {{domxref("Element")}}입니다. {{domxref("Window")}}에서 수신할 경우 캡처 또는 버블링 단계의 이벤트를 받게 됩니다. 이벤트에 대한 자세한 정보는 [Element: cut 이벤트](/ko/docs/Web/API/Element/cut_event)에서 확인하세요. + +## 예제 + +```js +window.addEventListener('cut', (event) => { + console.log('잘라내기 동작 실행') +}); +``` + +## 명세 + +{{Specifications}} + +## 브라우저 호환성 + +{{Compat}} + +## 같이 보기 + +- 관련 이벤트: {{domxref("Window/copy_event", "copy")}}, {{domxref("Window/paste_event", "paste")}} +- {{domxref("Element")}}를 대상으로 한 같은 이벤트: {{domxref("Element/cut_event", "cut")}} +- {{domxref("Document")}}를 대상으로 한 같은 이벤트: {{domxref("Document/cut_event", "cut")}} diff --git a/files/ko/web/api/window/paste_event/index.md b/files/ko/web/api/window/paste_event/index.md new file mode 100644 index 0000000000..a5ccb1df42 --- /dev/null +++ b/files/ko/web/api/window/paste_event/index.md @@ -0,0 +1,61 @@ +--- +title: 'Window: paste 이벤트' +slug: Web/API/Window/paste_event +tags: + - API + - Event + - Reference + - Web + - Window + - paste +browser-compat: api.Window.paste_event +translation_of: Web/API/Window/paste_event +--- +{{APIRef}} + +**`paste`** 이벤트는 사용자가 브라우저의 사용자 인터페이스를 통해 붙여넣기를 했을 때 발생합니다. + +<table class="properties"> + <tbody> + <tr> + <th scope="row">버블링</th> + <td>예</td> + </tr> + <tr> + <th scope="row">취소 가능</th> + <td>예</td> + </tr> + <tr> + <th scope="row">인터페이스</th> + <td>{{domxref("ClipboardEvent")}}</td> + </tr> + <tr> + <th scope="row">이벤트 처리기 속성</th> + <td>{{domxref("HTMLElement/onpaste", "onpaste")}}</td> + </tr> + </tbody> +</table> + +`paste` 이벤트의 원 대상은 붙여넣기 동작의 대상인 {{domxref("Element")}}입니다. {{domxref("Window")}}에서 수신할 경우 캡처 또는 버블링 단계의 이벤트를 받게 됩니다. 이벤트에 대한 자세한 정보는 [Element: paste 이벤트](/ko/docs/Web/API/Element/paste_event)에서 확인하세요. + +## 예제 + +```js +window.addEventListener('paste', (event) => { + console.log('붙여넣기 동작 실행') +}); +``` + +## 명세 + +{{Specifications}} + +## 브라우저 호환성 + +{{Compat}} + +## 같이 보기 + +- 관련 이벤트: {{domxref("Window/copy_event", "copy")}}, {{domxref("Window/cut_event", "cut")}} +- {{domxref("Element")}}를 대상으로 한 같은 이벤트: {{domxref("Element/paste_event", "paste")}} +- {{domxref("Document")}}를 대상으로 한 같은 이벤트: {{domxref("Document/paste_event", "paste")}} |