Initialize view variable
Sets known initialization value to the last keyboard command
This commit is contained in:
parent
94f682c6bd
commit
2a780dba0e
|
@ -24,9 +24,10 @@
|
|||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#include <gal/graphics_abstraction_layer.h>
|
||||
#include <tool/actions.h>
|
||||
#include <view/view.h>
|
||||
#include <view/view_controls.h>
|
||||
#include <gal/graphics_abstraction_layer.h>
|
||||
|
||||
using namespace KIGFX;
|
||||
|
||||
|
@ -72,7 +73,7 @@ void VC_SETTINGS::Reset()
|
|||
m_panWithLeftButton = false;
|
||||
m_lastKeyboardCursorPositionValid = false;
|
||||
m_lastKeyboardCursorPosition = { 0.0, 0.0 };
|
||||
m_lastKeyboardCursorCommand = 0;
|
||||
m_lastKeyboardCursorCommand = ACTIONS::CURSOR_NONE;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -177,7 +177,7 @@ public:
|
|||
virtual OPT<TOOL_EVENT> TranslateLegacyId( int aId ) = 0;
|
||||
|
||||
///> Cursor control event types
|
||||
enum CURSOR_EVENT_TYPE { CURSOR_UP, CURSOR_DOWN, CURSOR_LEFT, CURSOR_RIGHT,
|
||||
enum CURSOR_EVENT_TYPE { CURSOR_NONE, CURSOR_UP, CURSOR_DOWN, CURSOR_LEFT, CURSOR_RIGHT,
|
||||
CURSOR_CLICK, CURSOR_DBL_CLICK, CURSOR_RIGHT_CLICK,
|
||||
CURSOR_FAST_MOVE = 0x8000 };
|
||||
|
||||
|
|
Loading…
Reference in New Issue