Skip to content

Commit 25d0b0a

Browse files
authored
Merge pull request #774 from waltersit0/shiftclick
Depositar/Retirar items rapido de la boveda con Shift+Click
2 parents 474ff8c + 077c162 commit 25d0b0a

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

CODIGO/Formularios/frmBancoObj.frm

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Begin VB.Form frmBancoObj
99
ClipControls = 0 'False
1010
ControlBox = 0 'False
1111
ForeColor = &H8000000F&
12+
KeyPreview = -1 'True
1213
LinkTopic = "Form1"
1314
MaxButton = 0 'False
1415
MinButton = 0 'False
@@ -420,6 +421,7 @@ Public LasActionBuy As Boolean
420421
Public LastIndex1 As Integer
421422
Public LastIndex2 As Integer
422423
Public NoPuedeMover As Boolean
424+
Private Shifteando As Boolean
423425

424426
Private Sub cantidad_Change()
425427

@@ -491,6 +493,16 @@ On Error Resume Next
491493

492494
End Sub
493495

496+
Private Sub Form_KeyDown(KeyCode As Integer, shift As Integer)
497+
498+
If shift = 1 Then Shifteando = True
499+
End Sub
500+
501+
Private Sub Form_KeyUp(KeyCode As Integer, shift As Integer)
502+
503+
If shift <> 1 Then Shifteando = False
504+
End Sub
505+
494506
Private Sub LoadTextsForm()
495507
Me.lblTitle.Caption = JsonLanguage.item("FRM_BANCOOBJ_TITLE").item("TEXTO")
496508
Me.lblDepositar.Caption = JsonLanguage.item("FRM_BANCOOBJ_DEPOSITAR").item("TEXTO")
@@ -562,6 +574,13 @@ End Sub
562574
Private Sub PicBancoInv_Click()
563575

564576
If InvBanco(0).SelectedItem <> 0 Then
577+
578+
If Shifteando Then
579+
LasActionBuy = True
580+
Call WriteBankExtractItem(InvBanco(0).SelectedItem, MAX_INVENTORY_OBJS)
581+
Exit Sub
582+
End If
583+
565584
With UserBancoInventory(InvBanco(0).SelectedItem)
566585
Label1(0).Caption = .name
567586

@@ -601,6 +620,13 @@ End Sub
601620
Private Sub PicInv_Click()
602621

603622
If InvBanco(1).SelectedItem <> 0 Then
623+
624+
If Shifteando Then
625+
LasActionBuy = False
626+
Call WriteBankDeposit(InvBanco(1).SelectedItem, MAX_INVENTORY_OBJS)
627+
Exit Sub
628+
End If
629+
604630
With Inventario
605631
Label1(0).Caption = .ItemName(InvBanco(1).SelectedItem)
606632

0 commit comments

Comments
 (0)