mirror of
https://gitgud.io/wackyideas/aerothemeplasma.git
synced 2024-08-15 00:43:43 +00:00
Very early KDE 6 release.
This commit is contained in:
parent
7cc4ccabbc
commit
686046d4f7
6272 changed files with 140920 additions and 529657 deletions
26
plasma/look-and-feel/authui7/contents/logout/timer.js
Normal file
26
plasma/look-and-feel/authui7/contents/logout/timer.js
Normal file
|
@ -0,0 +1,26 @@
|
|||
/*
|
||||
SPDX-FileCopyrightText: 2018 David Edmundson <davidedmundson@kde.org>
|
||||
|
||||
SPDX-License-Identifier: GPL-2.0-or-later
|
||||
*/
|
||||
|
||||
.pragma library
|
||||
|
||||
//written as a library to share knowledge of when a key was pressed
|
||||
//between the multiple views, so pressing a key on one cancels all timers
|
||||
|
||||
var callbacks = [];
|
||||
|
||||
function addCancelAutoTriggerCallback(callback) {
|
||||
callbacks.push(callback);
|
||||
}
|
||||
|
||||
function cancelAutoTrigger() {
|
||||
callbacks.forEach(function(c) {
|
||||
if (!c) {
|
||||
return;
|
||||
}
|
||||
c();
|
||||
});
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue