mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59:52 +08:00
use Ctrl+<Num> instead of Ctrl+Alt+<Num> to insert title
This commit is contained in:
parent
bd7f0e6cdd
commit
bcdfc90951
@ -51,7 +51,7 @@ Backspace. Delete a character backward.
|
|||||||
Delete all the characters from current cursor to the first space backward.
|
Delete all the characters from current cursor to the first space backward.
|
||||||
- `Ctrl+U`
|
- `Ctrl+U`
|
||||||
Delete all the characters from current cursor to the beginning of current line.
|
Delete all the characters from current cursor to the beginning of current line.
|
||||||
- `Ctrl+Alt+<Num>`
|
- `Ctrl+<Num>`
|
||||||
Insert title at level `<Num>`. `<Num>` should be 1 to 6. Currently selected text will be changed to title if exist.
|
Insert title at level `<Num>`. `<Num>` should be 1 to 6. Currently selected text will be changed to title if exist.
|
||||||
- `Tab`/`Shift+Tab`
|
- `Tab`/`Shift+Tab`
|
||||||
Increase or decrease the indentation. If any text is selected, the indentation will operate on all these selected lines.
|
Increase or decrease the indentation. If any text is selected, the indentation will operate on all these selected lines.
|
||||||
|
@ -51,7 +51,7 @@
|
|||||||
删除光标位置向后到第一个空白字符之间的所有字符。
|
删除光标位置向后到第一个空白字符之间的所有字符。
|
||||||
- `Ctrl+U`
|
- `Ctrl+U`
|
||||||
删除光标位置到行首的所有字符。
|
删除光标位置到行首的所有字符。
|
||||||
- `Ctrl+Alt+<Num>`
|
- `Ctrl+<Num>`
|
||||||
插入级别为`<Num>`的标题。`<Num>`应该是1到6的一个数字。如果已经选择文本,则将当前选择文本改为标题。
|
插入级别为`<Num>`的标题。`<Num>`应该是1到6的一个数字。如果已经选择文本,则将当前选择文本改为标题。
|
||||||
- `Tab`/`Shift+Tab`
|
- `Tab`/`Shift+Tab`
|
||||||
增加或减小缩进。如果已经选择文本,则对所有选择的行进行缩进操作。
|
增加或减小缩进。如果已经选择文本,则对所有选择的行进行缩进操作。
|
||||||
|
@ -194,8 +194,8 @@ bool VMdEditOperations::handleKeyPressEvent(QKeyEvent *p_event)
|
|||||||
case Qt::Key_5:
|
case Qt::Key_5:
|
||||||
case Qt::Key_6:
|
case Qt::Key_6:
|
||||||
{
|
{
|
||||||
if (modifiers == (Qt::ControlModifier | Qt::AltModifier)) {
|
if (modifiers == Qt::ControlModifier) {
|
||||||
// Ctrl + Alt + <N>: insert title at level <N>.
|
// Ctrl + <N>: insert title at level <N>.
|
||||||
if (insertTitle(key - Qt::Key_0)) {
|
if (insertTitle(key - Qt::Key_0)) {
|
||||||
p_event->accept();
|
p_event->accept();
|
||||||
ret = true;
|
ret = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user