Author Topic: Space Key Operation  (Read 1719 times)

Akihiro Inoue

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 32
    • View Profile
Space Key Operation
« on: August 11, 2017, 02:49:51 pm »
Hi,
Thank you for your support.

How to use space key to use for space. Because, it is used for page down by default.

Is it possible to over ride so that i can use it for space purpose.


paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Re: Space Key Operation
« Reply #1 on: August 11, 2017, 11:40:58 pm »
It's possible to override it in cellKeyDown to some extent.

Code: [Select]
cellKeyDown: function(evt, ui){

if(evt.keyCode == $.ui.keyCode.SPACE){
if(this.isEditableRow(ui) && this.isEditableCell(ui)){
this.editCell(ui);
}
return false; //to prevent default behavior of page down.
}
},