Skip to content

Commit 635abf6

Browse files
committed
Portal.view.learn.ContentComponent: onClick() => cleanup
1 parent 698f508 commit 635abf6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

apps/portal/view/learn/ContentComponent.mjs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -321,15 +321,15 @@ class ContentComponent extends Component {
321321
/**
322322
* @param {Object} data
323323
*/
324-
onClick(data) {
325-
let me = this,
326-
record = me.record;
324+
onClick({altKey, metaKey, shiftKey}) {
325+
let me = this,
326+
{record} = me;
327327

328-
if (data.altKey && data.shiftKey && !data.metaKey) {
328+
if (altKey && !metaKey && shiftKey) {
329329
me.fire('edit', {component: me, record})
330330
}
331331
// Command/windows shift click = refresh
332-
else if (!data.altKey && data.shiftKey && data.metaKey) {
332+
else if (!altKey && metaKey && shiftKey) {
333333
me.fire('refresh', {component: me, record})
334334
}
335335
}

0 commit comments

Comments
 (0)