Skip to content

Commit 5bc4abb

Browse files
committed
Added key state tracking
1 parent e9e9a46 commit 5bc4abb

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

include/lsp-plug.in/tk/widgets/containers/Window.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,9 @@ namespace lsp
291291
// Get last surface type used
292292
ws::surface_type_t surface_type() const;
293293

294+
// Get active keys
295+
const lltl::darray<ws::code_t> *active_keys() const;
296+
294297
//---------------------------------------------------------------------------------
295298
// Event handling
296299
public:

src/main/widgets/containers/Window.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1621,5 +1621,10 @@ namespace lsp
16211621
return enSurfaceType;
16221622
}
16231623

1624+
const lltl::darray<ws::code_t> *Window::active_keys() const
1625+
{
1626+
return &hKeys.vKeys;
1627+
}
1628+
16241629
} /* namespace tk */
16251630
} /* namespace lsp */

0 commit comments

Comments
 (0)