Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    ctrlKeyDown - getKey Problem

    Hello!

    SmartClient Version: v10.0p_2015-08-08/Pro Deployment (built 2015-08-08) Chrome - Version 56.0.2924.87 (64-bit)

    Got following problem!

    When i press (ctrl+enter) i get (ctrl+J) or (ctrl+10) under Windows-Chrome
    under Mac-Chrome there is no problem! - it properly returns (ctrl+enter) or (ctrl+13)

    Any ideas?

    Its seems to occur only if im using it in the ctrlKeyDown function.

    Code:
    keyPress : function () {
      App.log("isc.EventHandler.getKey()");
      App.log(isc.EventHandler.getKey());
      App.log("isc.EventHandler.getKeyEventCharacterValue()");
      App.log(isc.EventHandler.getKeyEventCharacterValue());
    
      if(isc.EventHandler.ctrlKeyDown()){
        App.log('ctrlKeyDown');
        App.log("isc.EventHandler.getKey()");
        App.log(isc.EventHandler.getKey());
        App.log("isc.EventHandler.getKeyEventCharacterValue()");
        App.log(isc.EventHandler.getKeyEventCharacterValue());        
        switch (isc.EventHandler.getKeyEventCharacterValue()) {
          // windows (ctrl-enter) is (ctrl->J)
          case 13: 
          case 10: 
            this.acceptKeysPressed();
            break;
            default : return;
        }
      }
    },


    Thanks
    Last edited by Thaddaeus; 9 Mar 2017, 01:09.

    #2
    Please try an up-to-date build (see smartclient.com/builds) and if you still have the issue, let us know what version of Windows you are testing on, and where keyboard focus is (that is, what kind of control). Ideally, just create a ready-to-run but minimal test case.

    Comment

    Working...
    X