{"action":"closed","issue":{"url":"https://api.github.com/repos/RobinHerbots/Inputmask/issues/1856","repository_url":"https://api.github.com/repos/RobinHerbots/Inputmask","labels_url":"https://api.github.com/repos/RobinHerbots/Inputmask/issues/1856/labels{/name}","comments_url":"https://api.github.com/repos/RobinHerbots/Inputmask/issues/1856/comments","events_url":"https://api.github.com/repos/RobinHerbots/Inputmask/issues/1856/events","html_url":"https://github.com/RobinHerbots/Inputmask/issues/1856","id":311507491,"number":1856,"title":"How can I test \"isComplete\" within \"onKeyDown\"","user":{"login":"NikolayVolkovR","id":28064446,"avatar_url":"https://avatars3.githubusercontent.com/u/28064446?v=4","gravatar_id":"","url":"https://api.github.com/users/NikolayVolkovR","html_url":"https://github.com/NikolayVolkovR","followers_url":"https://api.github.com/users/NikolayVolkovR/followers","following_url":"https://api.github.com/users/NikolayVolkovR/following{/other_user}","gists_url":"https://api.github.com/users/NikolayVolkovR/gists{/gist_id}","starred_url":"https://api.github.com/users/NikolayVolkovR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NikolayVolkovR/subscriptions","organizations_url":"https://api.github.com/users/NikolayVolkovR/orgs","repos_url":"https://api.github.com/users/NikolayVolkovR/repos","events_url":"https://api.github.com/users/NikolayVolkovR/events{/privacy}","received_events_url":"https://api.github.com/users/NikolayVolkovR/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-04-05T07:56:13Z","updated_at":"2018-04-16T07:34:06Z","closed_at":"2018-04-16T07:34:06Z","author_association":"NONE","body":"How can I test \"isComplete\" within \"onKeyDown\", for exapmle?\r\n\r\n```\r\nInputmask({\r\n            \"mask\": \"(999) 999-9999\",\r\n            onKeyDown: function(buffer, opts) {\r\n                ...\r\n               // if (isComplete) do something\r\n               // else do sometheing else\r\n                ...\r\n            }\r\n        }).mask(input);\r\n```\r\nThank you!"}}
{"actor":{"display_login":"RobinHerbots"}}