Added a couple more key bindings to hex editor cursor control.
This commit is contained in:
parent
f6afca360f
commit
75b076f256
|
@ -442,7 +442,7 @@ void QHexEdit::keyPressEvent(QKeyEvent *event)
|
|||
}
|
||||
resetCursorBlink();
|
||||
}
|
||||
if (event->matches(QKeySequence::MoveToPreviousChar))
|
||||
else if (event->matches(QKeySequence::MoveToPreviousChar))
|
||||
{
|
||||
cursorPosX--;
|
||||
|
||||
|
@ -452,7 +452,17 @@ void QHexEdit::keyPressEvent(QKeyEvent *event)
|
|||
}
|
||||
resetCursorBlink();
|
||||
}
|
||||
if (event->matches(QKeySequence::MoveToPreviousLine))
|
||||
else if (event->matches(QKeySequence::MoveToEndOfLine))
|
||||
{
|
||||
cursorPosX = 47;
|
||||
resetCursorBlink();
|
||||
}
|
||||
else if (event->matches(QKeySequence::MoveToStartOfLine))
|
||||
{
|
||||
cursorPosX = 0;
|
||||
resetCursorBlink();
|
||||
}
|
||||
else if (event->matches(QKeySequence::MoveToPreviousLine))
|
||||
{
|
||||
cursorPosY--;
|
||||
|
||||
|
@ -468,7 +478,7 @@ void QHexEdit::keyPressEvent(QKeyEvent *event)
|
|||
}
|
||||
resetCursorBlink();
|
||||
}
|
||||
if (event->matches(QKeySequence::MoveToNextLine))
|
||||
else if (event->matches(QKeySequence::MoveToNextLine))
|
||||
{
|
||||
cursorPosY++;
|
||||
|
||||
|
|
Loading…
Reference in New Issue