Changeset 1336


Ignore:
Timestamp:
02/03/18 07:55:19 (7 months ago)
Author:
gogo
Message:

Fix for console warning in Chrome

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/WebKit/WebKit.js

    r1146 r1336  
    707707{  
    708708 // with ctrl pressed Safari does not give the charCode, unfortunately this (shortcuts) is about the only thing this function is for 
     709  if(typeof keyEvent.keyIdentifier == 'undefined') 
     710  { 
     711    if(typeof keyEvent.key != 'undefined') 
     712    { 
     713      return keyEvent.key; 
     714    } 
     715  } 
     716   
    709717  var key = String.fromCharCode(parseInt(keyEvent.keyIdentifier.replace(/^U\+/,''),16)); 
    710718  if (keyEvent.shiftKey) return key; 
Note: See TracChangeset for help on using the changeset viewer.