2 Screenshots




User Feedback

Recommended Comments

You've declared:  local G = GLOBAL

But don't use it at all.

 

Also, could you add in this option to make the autocomplete still show, but does not interact at all with the user's input?

AddClassPostConstruct(
    "widgets/wordpredictionwidget",
    function(self)
        self.OnRawKey = function(self, key, isdown, ...)
            if key == KEY_BACKSPACE or key == KEY_DELETE
            then
                self.active_prediction_btn = nil
                self:RefreshPredictions()
            end
            return false
        end
        self.OnControl = function(self, control, isdown, ...)
            if self._base.OnControl(self, control, down, ...)
            then
                return true
            end
            return false
        end
        self.OnTextInput = function(self, text, ...)
            return false
        end
    end
)

 

Edited by CarlZalph
  • Sad 1

Share this comment


Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now