Is numeric keypad key?

Hi guys,

The question that I’d like to put probably ends sound a little weird… but I need the answer, though.

Given one “hardware_key” (having GdkEventKey structure), I’d like to know if its value depends (or not) of the “Nums Lock” key status (locked / unlocked).

So, I need to implement the following function “is_numeric_keypad_key”.

bool is_numeric_keypad_key (const guint16);

bool on_key_press_event (GdkEventKey * key)
is_numeric_keypad_key (key->hardware_key)

This should answer your question @glus.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.