Key Down
Characters:
Unicode: 3 / 0x3
Keys: ⌅
Key Code: 76 / 0x4c
Modifiers: 2097408 / 0x200100
Key Down
Characters:
Unicode: 13 / 0xd
Keys: ↵
Key Code: 36 / 0x24
Modifiers: 256 / 0x100
/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/Headers/Events.h
/* MacRoman character codes*/
enum {
kNullCharCode = 0,
kHomeCharCode = 1,
kEnterCharCode = 3,
kEndCharCode = 4,
kHelpCharCode = 5,
kBellCharCode = 7,
kBackspaceCharCode = 8,
kTabCharCode = 9,
kLineFeedCharCode = 10,
kVerticalTabCharCode = 11,
kPageUpCharCode = 11,
kFormFeedCharCode = 12,
kPageDownCharCode = 12,
kReturnCharCode = 13,
kFunctionKeyCharCode = 16,
kCommandCharCode = 17, /* glyph available only in system fonts*/
kCheckCharCode = 18, /* glyph available only in system fonts*/
kDiamondCharCode = 19, /* glyph available only in system fonts*/
kAppleLogoCharCode = 20, /* glyph available only in system fonts*/
kEscapeCharCode = 27,
kClearCharCode = 27,
kLeftArrowCharCode = 28,
kRightArrowCharCode = 29,
kUpArrowCharCode = 30,
kDownArrowCharCode = 31,
kSpaceCharCode = 32,
kDeleteCharCode = 127,
kBulletCharCode = 165,
kNonBreakingSpaceCharCode = 202
};
overflow-y: scroll
, возможно этого будет достаточно. $(function() {
var nice = $(".r").niceScroll({
cursorcolor: "yellow",
cursorwidth: "10px",
cursorborder: "1px solid red",
cursorborderradius: "15",
autohidemode: false,
cursorminheight: 32
});
$(".click-more-info").click(function() {
$(this).siblings(".more-info-block").slideToggle(800, function() {
nice.resize()
})
});
});
var timeBetweenTypes = 700, // время между нажатиями 700мс
myTimer; // таймер
//запускаем таймер, когда стреляет keyup
$('#searchPermitted').on('input keyup', function(){
clearTimeout(myTimer);
if ($('#searchPermitted').val()) {
myTimer = setTimeout(typeEnd, timeBetweenTypes);
}
});
// считаем, что ввод текста в input закончен
function typeEnd () {
$('#textAppender')
.append('<li>' + $('#searchPermitted').val() + '</li>');
}
const adjacentElementsProduct = arr => arr
.sort((a, b) => a - b)
.slice(-2)
.reduce((acc, n) => acc * n, 1);
function adjacentElementsProduct (inputArray) {
return inputArray
.sort()
.slice(-2)
.reduce((total, num) => total * num);
}
function adjacentElementsProduct (inputArray) {
const [ x, y ] = inputArray
.sort()
.slice(-2);
return x * y;
}