dev/server/public/admin/vendor/ace/lib/ace/keyboard/vim.js
function(data, hashId, key) {
        if (hashId == -1) {
            // record key
            data.inputChar = key;
            data.lastEvent = "input";
        } else if (data.inputChar && data.$lastHash == hashId && data.$lastKey == key) {
            // check for repeated keypress 
            if (data.lastEvent == "input") {
                data.lastEvent = "input1";
            } else if (data.lastEvent == "input1") {
                // simulate textinput
                return true;
            }
        } else {
            // reset
            data.$lastHash = hashId;
            data.$lastKey = key;
            data.lastEvent = "keypress";
        }
    }
function(data, hashId, key) {
        if (hashId == -1) {
            // record key
            data.inputChar = key;
            data.lastEvent = "input";
        } else if (data.inputChar && data.$lastHash == hashId && data.$lastKey == key) {
            // check for repeated keypress 
            if (data.lastEvent == "input") {
                data.lastEvent = "input1";
            } else if (data.lastEvent == "input1") {
                // simulate textinput
                return true;
            }
        } else {
            // reset
            data.$lastHash = hashId;
            data.$lastKey = key;
            data.lastEvent = "keypress";
        }
    }
function ( data , hashId , key ) { if ( hashId == - 1 ) { // record key data . inputChar = key ; data . lastEvent = "input" ; } else if ( data . inputChar && data . $lastHash == hashId && data . $lastKey == key ) { // check for repeated keypress  if ( data . lastEvent == "input" ) { data . lastEvent = "input1" ; } else if ( data . lastEvent == "input1" ) { // simulate textinput return true ; } } else { // reset data . $lastHash = hashId ; data . $lastKey = key ; data . lastEvent = "keypress" ; } }
workaround for j not repeating with `defaults write -g ApplePressAndHoldEnabled -bool true`
workaround for j not repeating with defaults write - g ApplePressAndHoldEnabled - bool true