Jump to content
  • The forum downloads section will be removed on Jan 1st 2023. Players may still download mods that are currently hosted, but new submissions are no longer being accepted. Mod makers are advised to relocate their mods to alternative hosting solutions.

Disable Auto-complete v3


2 Screenshots

  • Thanks 1

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
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
×
  • Create New...