dapaas / grafterizer

Graphical user interface for defining Grafter-based data transformation pipelines in DaPaaS.
Eclipse Public License 1.0
7 stars 1 forks source link

Left and right arrow keys don't work in input fields #130

Open nvnikolov opened 8 years ago

nvnikolov commented 8 years ago

Scrolling left and right through the text of an input field doesn't work.

fungiboletus commented 8 years ago

Can you reproduce the problem ? I can't reproduce it with Firefox and Chrome.

fungiboletus commented 8 years ago

md-fab captures keyboard events when it is open.

function keyPressed(event) {
      switch (event.which) {
        case $mdConstant.KEY_CODE.SPACE: event.preventDefault(); return false;
        case $mdConstant.KEY_CODE.ESCAPE: vm.close(); event.preventDefault(); return false;
        case $mdConstant.KEY_CODE.LEFT_ARROW: doKeyLeft(event); return false;
        case $mdConstant.KEY_CODE.UP_ARROW: doKeyUp(event); return false;
        case $mdConstant.KEY_CODE.RIGHT_ARROW: doKeyRight(event); return false;
        case $mdConstant.KEY_CODE.DOWN_ARROW: doKeyDown(event); return false;
      }
    }