13
0

change operator<< for Keyboardkey to show state in hex

This commit is contained in:
Paul Davis 2015-10-27 13:29:22 -04:00
parent 2cc44e7668
commit b23c5264f2

View File

@ -1080,6 +1080,6 @@ ActionMap::get_all_actions (std::vector<std::string>& paths,
std::ostream& operator<<(std::ostream& out, Gtkmm2ext::KeyboardKey const & k) {
char const *gdk_name = gdk_keyval_name (k.key());
return out << "Key " << k.key() << " (" << (gdk_name ? gdk_name : "no-key") << ") state " << k.state();
return out << "Key " << k.key() << " (" << (gdk_name ? gdk_name : "no-key") << ") state " << hex << k.state() << dec;
}