Skip to content

Commit

Permalink
fix: avoid focus in INFO(3,6)="6" client
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephan Wald committed Nov 16, 2020
1 parent 90869ab commit 139b01f
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions BBjGridExWidget.bbj
Expand Up @@ -2436,11 +2436,13 @@ class public BBjGridExWidget extends BBjWidget implements GxColumnsManagerInterf
method public void focus(BBjString row! , BBjString column! , BBjString floating!)
rem DO NOT focus the canvas or the we will have an infinite focus calls
rem #super!.focus()
if #getCanvas().getParentWindow().getFocusedControlID() <> #getCanvas().getID() then
#getHTMLView().clearCallback(BBjAPI.ON_GAINED_FOCUS)
#HTMLView!.focus()
#getHTMLView().setCallback(BBjAPI.ON_GAINED_FOCUS,#this!,"onGainedFocus")
FI
if info(3,6)<>"6" then
if #getCanvas().getParentWindow().getFocusedControlID() <> #getCanvas().getID() then
#getHTMLView().clearCallback(BBjAPI.ON_GAINED_FOCUS)
#HTMLView!.focus()
#getHTMLView().setCallback(BBjAPI.ON_GAINED_FOCUS,#this!,"onGainedFocus")
FI
endif
rem /**
rem * We never debounce the focus calls , this causes a heck of problems
rem * when there are several grids rendered
Expand Down

0 comments on commit 139b01f

Please sign in to comment.