mirror of
https://github.com/BorysLevytskyi/BitwiseCmd.git
synced 2025-12-23 21:22:48 +01:00
fixed bugs in dispatching of commands
This commit is contained in:
@@ -3,14 +3,14 @@
|
||||
app.controller('expressionInputCtrl', {
|
||||
$dispatcher:null,
|
||||
attachView: function (viewElement) {
|
||||
|
||||
var d = this.$dispatcher;
|
||||
viewElement.addEventListener('keyup', function (args) {
|
||||
if (args.keyCode != 13) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Enter
|
||||
this.$dispatcher.dispatch(args.srcElement.value);
|
||||
d.dispatch(args.srcElement.value);
|
||||
args.srcElement.value = '';
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user