add ignoreKyes option to Message.

This commit is contained in:
Christopher Jeffrey 2014-06-01 20:38:36 -05:00
parent db10ca1bc4
commit 083a4901bd

View File

@ -5779,6 +5779,9 @@ Message.prototype.display = function(text, time, callback) {
return;
}
}
if (self.options.ignoreKeys && ~self.options.ignoreKeys.indexOf(key.name)) {
return;
}
self.screen.removeListener('keypress', fn);
end();
});