mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-01 09:47:22 +13:00
Move sticker with arrow keys instead of resizing it
This commit is contained in:
parent
0bed292339
commit
ee96cd98fb
1 changed files with 8 additions and 3 deletions
|
@ -50,7 +50,7 @@ public override void ShowNodes()
|
|||
{
|
||||
}
|
||||
|
||||
private void OpenStickerPicker(bool creating)
|
||||
private void OpenStickerForm(bool creating)
|
||||
{
|
||||
Manager.Form.Pause();
|
||||
|
||||
|
@ -99,12 +99,17 @@ public override void OnCreating()
|
|||
Point pos = InputManager.ClientMousePosition;
|
||||
Rectangle = new Rectangle(pos.X, pos.Y, 1, 1);
|
||||
|
||||
OpenStickerPicker(true);
|
||||
OpenStickerForm(true);
|
||||
}
|
||||
|
||||
public override void OnDoubleClicked()
|
||||
{
|
||||
OpenStickerPicker(false);
|
||||
OpenStickerForm(false);
|
||||
}
|
||||
|
||||
public override void Resize(int x, int y, bool fromBottomRight)
|
||||
{
|
||||
Move(x, y);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue