Keyboard Shortcuts

QuestionsKeyboard Shortcuts
Patricia Lawson asked 7 years ago

Dear Sir,
Can I get some information on how to use keyboard shortcuts to add a row to a grid. Using the mouse to click on + is very time consuming.
Many thanks!

3 Answers
Abu Ghufran answered 7 years ago

You can bind your shortcut keys by adding following lib:

<script src="//cdn.jsdelivr.net/jquery.hotkeys/0.8b/jquery.hotkeys.js"></script>

More help on keys are available on its site: http://github.com/tzuryby/hotkeys

Next, you will find the ID of button to attach shortcut. Use firebug inspect to hover that button and it would show ID of the element.

e.g. To add 'insert' key with '+' button in toolbar (where list1 is your grid id)

<script>
// insert key to add new row
$(document).bind('keyup', 'insert', function(){
jQuery('#add_list1').click();
});
</script>

Mario answered 5 years ago

Hello

is there also a hotkey-skript for "edit"?

Abu Ghufran answered 5 years ago

You can use https://github.com/jeresig/jquery.hotkeys to connect desired key for edit.

Working code here: http://pastebin.com/RuKBFkzE

Your Answer

3 + 13 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?