Left and right arrow keys don't work in input fields
nvnikolov opened this issue · 2 comments
nvnikolov commented
Scrolling left and right through the text of an input field doesn't work.
fungiboletus commented
Can you reproduce the problem ? I can't reproduce it with Firefox and Chrome.
fungiboletus commented
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;
}
}