How to call a function using knockout.js when enter key is pressed.. here is my code below.
ko.bindingHandlers.enterkey = { init: function (element, valueAcc
This worked for me, thanks to @DaafVader for most of it.
in view
in viewmodel
var searchKeyUp = function (d, e) { if (e.keyCode == 13) { search(); } }