Skip to content

Commit 4784245

Browse files
spcxteslaSPC
andauthored
change Ctrl-f to Ctrl-a (#2278)
Co-authored-by: SPC <[email protected]>
1 parent 5d831ab commit 4784245

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ All mappings added with `imapkey` work in this mode.
160160
* `Ctrl - i` to open vim editor to edit.
161161
* `Ctrl - '` to toggle quotes in an input element, this is useful for search engines like google.
162162
* `Ctrl-e` move the cursor to the end of the line.
163-
* `Ctrl-f` move the cursor to the beginning of the line.
163+
* `Ctrl-a` move the cursor to the beginning of the line.
164164
* `Ctrl-u` delete all entered characters before the cursor.
165165
* `Alt-b` move the cursor Backward 1 word.
166166
* `Alt-f` move the cursor Forward 1 word.

README_CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ Surfingkeys有三种模式:normal,visual和insert。
142142
* `Ctrl - i` 打开vim编辑器。
143143
* `Ctrl - '` 把输入框里的内容用双引号引起来或去除双引号,方便在搜索引擎页面上搜索时使用。
144144
* `Ctrl-e`移动光标到行尾。
145-
* `Ctrl-f` 移动光标到行首。
145+
* `Ctrl-a` 移动光标到行首。
146146
* `Ctrl-u` 删除光标前所有输入。
147147
* `Alt-b` 移动光标到后一个词。
148148
* `Alt-f` 移动光标到前一个词。

src/content_scripts/common/insert.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function createInsert() {
6161
feature_group: 15,
6262
code: moveCursorEOL
6363
});
64-
self.mappings.add(KeyboardUtils.encodeKeystroke("<Ctrl-f>"), {
64+
self.mappings.add(KeyboardUtils.encodeKeystroke("<Ctrl-a>"), {
6565
annotation: "Move the cursor to the beginning of the line",
6666
feature_group: 15,
6767
code: function() {

0 commit comments

Comments
 (0)