mirror of
https://github.com/chylex/TweetDuck.git
synced 2024-11-25 05:42:47 +01:00
20 lines
484 B
JavaScript
20 lines
484 B
JavaScript
(function($, $TD, TD){
|
|
$(document).keydown(function(e){
|
|
|
|
// ==============================
|
|
// F4 key - simulate notification
|
|
// ==============================
|
|
|
|
if (e.keyCode === 115){
|
|
var col = TD.controller.columnManager.getAllOrdered()[0];
|
|
|
|
$.publish("/notifications/new",[{
|
|
column: col,
|
|
items: [
|
|
col.updateArray[Math.floor(Math.random()*col.updateArray.length)]
|
|
]
|
|
}]);
|
|
}
|
|
});
|
|
})($, $TD, TD);
|