タイトルバー選択時の挙動について | Cursor behavior on Down key from title bar differs from keybinding definition (v6)

※English translation follows below.

お疲れ様です、v6使わせていただいています!
ひとつご質問させてください。

ノートの「タイトルバー」にカーソルがある状態で、下キーを押すと、
従来はノート本文の「一番先頭」にカーソルが行く仕様でした。
しかし今回、同様の操作をすると、ノート先頭ではなく、
「最後にカーソルがあった位置」にカーソルが行くようです。

これは意図した仕様変更なのか、それともバグか、どちらでしょうか?

Keybindings を見ますと、

".editor-title-bar-input input": {
  "down": "editor:focus-and-go-doc-start"
}

という割り当てがされているので、バグなのかなと
(ノート先頭にカーソルが行くのが、想定動作なのかなと)
思ったのですが、いかがでしょうか。

ご確認のほどよろしくお願い致します。


English translation

Hi, thanks for your work — I’ve been using v6!
I have a quick question.

When the cursor is in the note’s “title bar” and I press the Down key,
it used to move the cursor to the very beginning of the note body.
However, now when I do the same action, instead of going to the beginning of the note,
the cursor seems to jump to “the last position the cursor was at.”

Is this an intentional change in behavior, or is it a bug?

Looking at the keybindings, I see the following mapping:

".editor-title-bar-input input": {
  "down": "editor:focus-and-go-doc-start"
}

Given this, I suspect it might be a bug (i.e., moving the cursor to the beginning of the note seems to be the intended behavior).

Could you please look into this?

Thank you.

1 Like

@Ryuki_Yokoo さん

Thanks for the report.
I found a bug where the editor:focus-and-go-doc-start command used an old API from v5.
Will fix it in the next release!

@craftzdog さん

Thank you for the rapid reply! I appreciate your kind support!

1 Like

Fixed in v6.1.0 :raising_hands:

Thanks again for the report :heart:

Thank you! I’ll try the new version!

1 Like