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

XMLWordPrintable

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: Normal
    • 3.5.0
    • Affects Version/s: None
    • Component/s: 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

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

              Created:
              Updated:
              Resolved: