EasyUI Forum
June 25, 2024, 10:09:46 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Problem with keyboad events when using numberspinner  (Read 6533 times)
contestant
Newbie
*
Posts: 40


View Profile Email
« on: March 14, 2015, 01:24:57 AM »

Hi to all

I use numberspinner for datagrid filed editor, But unfortunately my function that listen to keyboard events like below has been currupted:

$(document).keypress(function(e) {
        if(e.which == 13) { // Press Enter
            saverow(grid,index);
        }
        else if(e.which == 0){ // Press Esc
            cancelrow(grid,index);
        }
    });
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: March 14, 2015, 05:59:50 PM »

Please refer to http://www.jeasyui.com/tutorial/datagrid/datagrid15.php
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!