# 아무것도 선택되지 않았을 때 K 단축키가 현재 게시글을 선택해야 합니다

**URL:** https://meta.discourse.org/t/k-hotkey-should-select-current-post-when-none-is-selected/143571
**Category:** Feature
**Created:** [3월 7, 2020, 12:30오전 UTC](https://meta.discourse.org/t/k-hotkey-should-select-current-post-when-none-is-selected/143571 "2020-03-07T00:30:31Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![seanblue](https://avatars.discourse-cdn.com/v4/letter/s/dc4da7/32.png) [@seanblue](https://meta.discourse.org/u/seanblue)
#### Post date: [3월 7, 2020, 12:30오전 UTC](https://meta.discourse.org/t/k-hotkey-should-select-current-post-when-none-is-selected/143571/1 "2020-03-07T00:30:31Z")

</div>

새로운 요청:

> [@아무것도 선택되지 않았을 때 K 단축키가 현재 게시글을 선택해야 합니다](https://meta.discourse.org/t/allow-e-hotkey-to-edit-post-even-when-post-isnt-selected/143571/6?u=seanblue):
>
> I was considering the post “selected” when it’s the number in the URL / post timeline, but I get your point. Doing what I requested would definitely go against expectations here. I see now that I’m asking for the wrong thing. The case that prompted this request is when I’m looking through a long wiki post (generally first post), and therefore I’d have to scroll a bunch more to click the edit button. The problem is that both J and K select the second post, not the first, even when I’m barely sc…

> **원본 요청**
>
> 게시물을 편집하는 E 단축키가 있습니다. 하지만 이 단축키는 J 또는 K 단축키를 사용하여 게시물을 "선택"한 경우에만 작동합니다. J 또는 K를 사용하여 선택하지 않았더라도, 현재 게시물(= URL/토론 타임라인에 있는 게시물)을 E 단축키로 편집할 수 있다면 큰 개선이 될 것이라고 생각합니다.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [3월 8, 2020, 3:16오전 UTC](https://meta.discourse.org/t/k-hotkey-should-select-current-post-when-none-is-selected/143571/2 "2020-03-08T03:16:23Z")

</div>

그렇지만 정말 기이하고 예상치 못한 일이 될 거예요. 개인적으로는 오히려 역기능이라고 생각해요.

---

<div class="post-metadata">

### Author: ![seanblue](https://avatars.discourse-cdn.com/v4/letter/s/dc4da7/32.png) [@seanblue](https://meta.discourse.org/u/seanblue)
#### Post date: [3월 8, 2020, 3:48오전 UTC](https://meta.discourse.org/t/k-hotkey-should-select-current-post-when-none-is-selected/143571/3 "2020-03-08T03:48:42Z")

</div>

> [@codinghorror](#):
>
> 하지만 이건 너무 기이하고 예상치 못한 일이 될 텐데요.

왜 그런가요? J 키를 눌러 같은 동작을 하는 것과 게시물을 스크롤하는 것이 그렇게 다른가요?

* * *

J와 K 외에 게시물을 선택하여 게시물별 키보드 단축키가 작동하도록 하는 다른 방법이 있나요?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [3월 8, 2020, 3:49오전 UTC](https://meta.discourse.org/t/k-hotkey-should-select-current-post-when-none-is-selected/143571/4 "2020-03-08T03:49:51Z")

</div>

아무것도 선택되지 않았다면, 아무것도 선택되지 않은 것입니다. 무작위로 선택을 강제하는 것은 저에게는 매우 이상하게 느껴집니다.

글쎄요, 키보드 단축키를 많이 사용하는 우리 팀 누군가가 의견을 내면 좋겠네요.

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [3월 8, 2020, 4:15오전 UTC](https://meta.discourse.org/t/k-hotkey-should-select-current-post-when-none-is-selected/143571/5 "2020-03-08T04:15:47Z")

</div>

사람들은 객체 기반 작업이 활성화되기 전에 선택 대상이 미리 정해져 있는 것에 익숙합니다.

객체를 명시적으로 지정하지 않은 경우 삭제 대화상자가 표시되는 파일 관리자는 아무도 원하지 않습니다. 그렇다면 편집할 대상을 지정하기 전에 왜 편집 대화상자를 띄우는 것일까요?

---

<div class="post-metadata">

### Author: ![seanblue](https://avatars.discourse-cdn.com/v4/letter/s/dc4da7/32.png) [@seanblue](https://meta.discourse.org/u/seanblue)
#### Post date: [3월 8, 2020, 4:45오전 UTC](https://meta.discourse.org/t/k-hotkey-should-select-current-post-when-none-is-selected/143571/6 "2020-03-08T04:45:08Z")

</div>

> [@Stephen](#):
>
> 왜 편집할 대상을 지정하기 전에 편집 다이얼로그를 띄우나요?

저는 URL 또는 게시물 타임라인에 표시된 번호가 있는 게시물을 “선택된” 것으로 고려하고 있었습니다만, 말씀하신 뜻을 이해합니다. 제가 요청한 방식은 분명히 여기서 기대되는 동작과 맞지 않겠지요.

이제 제가 잘못된 것을 요청하고 있다는 것을 깨달았습니다. 이 요청의 계기가 된 경우는 긴 위키 게시물(보통 첫 번째 게시물)을 보고 있을 때인데, 이 경우 _클릭_하여 편집 버튼을 누르기 위해 더 많이 스크롤해야 합니다. 문제는 J와 K 모두 첫 번째 게시물이 아니라 _두 번째_ 게시물을 선택한다는 점입니다. 첫 번째 게시물에 _조금만_ 스크롤되어 있는 상태에서도 마찬가지입니다. J의 경우 다음 게시물을 선택하도록 되어 있으므로 이런 동작은 어느 정도 이해가 갑니다. 하지만 K의 경우(아직 아무것도 선택되지 않은 상태라면) 현재 보고 있는 게시물을 선택하는 것이 더 합리적이라고 생각합니다. 현재 동작 방식으로는 현재 보고 있는 게시물을 편집하려면 J(또는 K)를 누른 다음 K를 누르고, 마지막으로 E를 눌러야 합니다. 이상적으로는 K를 누른 다음 E만 누르면 현재 게시물을 편집할 수 있기를 바랍니다. 키를 하나만 덜 누르는 것이긴 하지만, 현재 동작 방식(특히 K의 경우)은 직관적이지 않습니다.

이해가 되셨으면 좋겠습니다. 만약 그렇지 않다면, 스크린샷으로 설명하기가 어렵기 때문에 영상을 찍어보겠습니다.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [3월 9, 2020, 7:27오전 UTC](https://meta.discourse.org/t/k-hotkey-should-select-current-post-when-none-is-selected/143571/7 "2020-03-09T07:27:15Z")

</div>

네, 이 주제를 다시 명명하거나 새 주제를 여는 것이 좋다고 생각합니다. `K`가 의외의 동작을 한다는 점에 전적으로 동의합니다. 일부만 표시되어 있더라도 첫 번째 보이는 게시물을 선택해야 합니다.

또는 시각적으로 설명하자면, K를 눌렀을 때 화면이 이렇다면:

 ![image](https://global.discourse-cdn.com/meta/original/3X/1/6/1699de7ea561b577a8545fc27ba5622114d62740.png)

화면에 남아 있어야 하는 것은 ⏫ 이고, 해당 게시물이 선택되어야 합니다.

@dan 선택 로직을 담당하신 분으로 기억하는데, 이 변경은 간단한가요?

---

<div class="post-metadata">

### Author: ![seanblue](https://avatars.discourse-cdn.com/v4/letter/s/dc4da7/32.png) [@seanblue](https://meta.discourse.org/u/seanblue)
#### Post date: [3월 9, 2020, 10:49오전 UTC](https://meta.discourse.org/t/k-hotkey-should-select-current-post-when-none-is-selected/143571/8 "2020-03-09T10:49:26Z")

</div>

> [@sam](#):
>
> 네, 이 주제를 다시 제목을 매기거나 새 주제를 만드는 게 좋을 것 같아요.

제가 제목과 첫 게시물을 최대한 잘 수정해 봤습니다. 대신 새 주제를 원하시면 말씀해 주세요.

---

<div class="post-metadata">

### Author: ![dan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dan/32/101549_2.png) [@dan](https://meta.discourse.org/u/dan)
#### Post date: [3월 23, 2020, 2:24오후 UTC](https://meta.discourse.org/t/k-hotkey-should-select-current-post-when-none-is-selected/143571/10 "2020-03-23T14:24:33Z")

</div>

일부만 보이는 게시글도 선택할 수 있도록 K의 선택 로직을 변경했습니다. J의 로직은 변경되지 않았습니다.

> <https://github.com/discourse/discourse/commit/5715f0ad01b621cafe16785e71f2b93f2a48d669>
>
> When no post is selected, K selects first partial post and J selects
> first full …post.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [3월 24, 2020, 12:05오전 UTC](https://meta.discourse.org/t/k-hotkey-should-select-current-post-when-none-is-selected/143571/11 "2020-03-24T00:05:25Z")

</div>

이건 정말 완벽하게 작동합니다

🎊

---

<div class="post-metadata">

### Author: ![dan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dan/32/101549_2.png) [@dan](https://meta.discourse.org/u/dan)
#### Post date: [3월 25, 2020, 12:43오후 UTC](https://meta.discourse.org/t/k-hotkey-should-select-current-post-when-none-is-selected/143571/12 "2020-03-25T12:43:27Z")

</div>


