Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nvnikolov opened this issue Oct 23, 2015 · 2 comments
Open

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

nvnikolov opened this issue Oct 23, 2015 · 2 comments
Labels
Milestone

Comments

@nvnikolov
Copy link
Contributor

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

@nvnikolov nvnikolov added this to the 4.0 milestone Oct 23, 2015
@fungiboletus
Copy link
Member

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

@fungiboletus
Copy link
Member

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;
      }
    }

@nvnikolov nvnikolov modified the milestones: 0.4.0, 0.5.0 Dec 14, 2015
@fungiboletus fungiboletus removed their assignment Mar 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants