Uploaded image for project: 'ZK Spreadsheet'
  1. ZK Spreadsheet
  2. ZSS-763

onCtrlKey event not fire on spreadsheet when the short cut is "ctrl + n"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Normal Normal
    • 3.5.0
    • None
    • ZSS Component
    • None

      Reproducible sample:

      @Wire
      private Spreadsheet ss;
      public void doAfterCompose(Window comp) throws Exception {
      	super.doAfterCompose(comp);
      	ss.setCtrlKeys(ss.getCtrlKeys() + "^n");
      }
      @Listen("onCtrlKey=#ss")
      public void shortCut(KeyEvent event) {
      	if (event.isCtrlKey()) {
      		int keyCode = event.getKeyCode();
      		if (keyCode == 78) //s = 78
      			System.out.println("ctrl + n pressed");
      	}
      }
      

      Expected: see log on console
      Actual: Browser open new tab

            JerryChen JerryChen
            vincentjian vincentjian
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: