@@ -67,30 +67,30 @@ ByteView::ByteView(QWidget* parent, BinaryViewRef data) : QAbstractScrollArea(pa
6767 m_updateTimer->setSingleShot (false );
6868 // connect(m_updateTimer, &QTimer::timeout, this, &ByteView::updateTimerEvent);
6969
70- actionHandler ()->bindAction (" Move Cursor Up" , UIAction ([=]() { up (false ); }));
71- actionHandler ()->bindAction (" Move Cursor Down" , UIAction ([=]() { down (false ); }));
72- actionHandler ()->bindAction (" Move Cursor Left" , UIAction ([=]() { left (1 , false ); }));
73- actionHandler ()->bindAction (" Move Cursor Right" , UIAction ([=]() { right (1 , false ); }));
74- actionHandler ()->bindAction (" Move Cursor Word Left" , UIAction ([=]() { left (8 , false ); }));
75- actionHandler ()->bindAction (" Move Cursor Word Right" , UIAction ([=]() { right (8 , false ); }));
76- actionHandler ()->bindAction (" Extend Selection Up" , UIAction ([=]() { up (true ); }));
77- actionHandler ()->bindAction (" Extend Selection Down" , UIAction ([=]() { down (true ); }));
78- actionHandler ()->bindAction (" Extend Selection Left" , UIAction ([=]() { left (1 , true ); }));
79- actionHandler ()->bindAction (" Extend Selection Right" , UIAction ([=]() { right (1 , true ); }));
80- actionHandler ()->bindAction (" Extend Selection Word Left" , UIAction ([=]() { left (8 , true ); }));
81- actionHandler ()->bindAction (" Extend Selection Word Right" , UIAction ([=]() { right (8 , true ); }));
82- actionHandler ()->bindAction (" Page Up" , UIAction ([=]() { pageUp (false ); }));
83- actionHandler ()->bindAction (" Page Down" , UIAction ([=]() { pageDown (false ); }));
84- actionHandler ()->bindAction (" Extend Selection Page Up" , UIAction ([=]() { pageUp (true ); }));
85- actionHandler ()->bindAction (" Extend Selection Page Down" , UIAction ([=]() { pageDown (true ); }));
86- actionHandler ()->bindAction (" Move Cursor to Start of Line" , UIAction ([=]() { moveToStartOfLine (false ); }));
87- actionHandler ()->bindAction (" Move Cursor to End of Line" , UIAction ([=]() { moveToEndOfLine (false ); }));
88- actionHandler ()->bindAction (" Move Cursor to Start of View" , UIAction ([=]() { moveToStartOfView (false ); }));
89- actionHandler ()->bindAction (" Move Cursor to End of View" , UIAction ([=]() { moveToEndOfView (false ); }));
90- actionHandler ()->bindAction (" Extend Selection to Start of Line" , UIAction ([=]() { moveToStartOfLine (true ); }));
91- actionHandler ()->bindAction (" Extend Selection to End of Line" , UIAction ([=]() { moveToEndOfLine (true ); }));
92- actionHandler ()->bindAction (" Extend Selection to Start of View" , UIAction ([=]() { moveToStartOfView (true ); }));
93- actionHandler ()->bindAction (" Extend Selection to End of View" , UIAction ([=]() { moveToEndOfView (true ); }));
70+ actionHandler ()->bindAction (" Move Cursor Up" , UIAction ([=, this ]() { up (false ); }));
71+ actionHandler ()->bindAction (" Move Cursor Down" , UIAction ([=, this ]() { down (false ); }));
72+ actionHandler ()->bindAction (" Move Cursor Left" , UIAction ([=, this ]() { left (1 , false ); }));
73+ actionHandler ()->bindAction (" Move Cursor Right" , UIAction ([=, this ]() { right (1 , false ); }));
74+ actionHandler ()->bindAction (" Move Cursor Word Left" , UIAction ([=, this ]() { left (8 , false ); }));
75+ actionHandler ()->bindAction (" Move Cursor Word Right" , UIAction ([=, this ]() { right (8 , false ); }));
76+ actionHandler ()->bindAction (" Extend Selection Up" , UIAction ([=, this ]() { up (true ); }));
77+ actionHandler ()->bindAction (" Extend Selection Down" , UIAction ([=, this ]() { down (true ); }));
78+ actionHandler ()->bindAction (" Extend Selection Left" , UIAction ([=, this ]() { left (1 , true ); }));
79+ actionHandler ()->bindAction (" Extend Selection Right" , UIAction ([=, this ]() { right (1 , true ); }));
80+ actionHandler ()->bindAction (" Extend Selection Word Left" , UIAction ([=, this ]() { left (8 , true ); }));
81+ actionHandler ()->bindAction (" Extend Selection Word Right" , UIAction ([=, this ]() { right (8 , true ); }));
82+ actionHandler ()->bindAction (" Page Up" , UIAction ([=, this ]() { pageUp (false ); }));
83+ actionHandler ()->bindAction (" Page Down" , UIAction ([=, this ]() { pageDown (false ); }));
84+ actionHandler ()->bindAction (" Extend Selection Page Up" , UIAction ([=, this ]() { pageUp (true ); }));
85+ actionHandler ()->bindAction (" Extend Selection Page Down" , UIAction ([=, this ]() { pageDown (true ); }));
86+ actionHandler ()->bindAction (" Move Cursor to Start of Line" , UIAction ([=, this ]() { moveToStartOfLine (false ); }));
87+ actionHandler ()->bindAction (" Move Cursor to End of Line" , UIAction ([=, this ]() { moveToEndOfLine (false ); }));
88+ actionHandler ()->bindAction (" Move Cursor to Start of View" , UIAction ([=, this ]() { moveToStartOfView (false ); }));
89+ actionHandler ()->bindAction (" Move Cursor to End of View" , UIAction ([=, this ]() { moveToEndOfView (false ); }));
90+ actionHandler ()->bindAction (" Extend Selection to Start of Line" , UIAction ([=, this ]() { moveToStartOfLine (true ); }));
91+ actionHandler ()->bindAction (" Extend Selection to End of Line" , UIAction ([=, this ]() { moveToEndOfLine (true ); }));
92+ actionHandler ()->bindAction (" Extend Selection to Start of View" , UIAction ([=, this ]() { moveToStartOfView (true ); }));
93+ actionHandler ()->bindAction (" Extend Selection to End of View" , UIAction ([=, this ]() { moveToEndOfView (true ); }));
9494}
9595
9696
0 commit comments