0

As title ,I try jquery trigger to simulate shift key but it can't work well. code like

var press_e = jQuery.Event("keypress");
press_e.which = $.ui.keycode.SHIFT;
$("#button").trigger(press_e);

[link]: ( Is it possible to simulate key press events programmatically? )

How to use javascript to change input method?

Community
  • 1
  • 1
tommycc
  • 95
  • 1
  • 6

0 Answers0