add keyboard accelerator
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* A Form Implementation
|
||||
* Copyright(C) 2003-2013 Jinhao(cnjinhao@hotmail.com)
|
||||
* Copyright(C) 2003-2018 Jinhao(cnjinhao@hotmail.com)
|
||||
*
|
||||
* Distributed under the Boost Software License, Version 1.0.
|
||||
* (See accompanying file LICENSE_1_0.txt or copy at
|
||||
@@ -10,6 +10,7 @@
|
||||
*/
|
||||
|
||||
#include <nana/gui/widgets/form.hpp>
|
||||
#include <nana/gui/detail/bedrock.hpp>
|
||||
|
||||
namespace nana
|
||||
{
|
||||
@@ -94,6 +95,11 @@ namespace nana
|
||||
{
|
||||
API::wait_for(handle());
|
||||
}
|
||||
|
||||
void form::keyboard_accelerator(const accel_key& key, const std::function<void()>& fn)
|
||||
{
|
||||
nana::detail::bedrock::instance().keyboard_accelerator(this->native_handle(), key, fn);
|
||||
}
|
||||
//end class form
|
||||
|
||||
//class nested_form
|
||||
|
||||
Reference in New Issue
Block a user