You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
would you mind adding keyword shortcut support for options?
you can use @mwcraig 's https://github.com/mwcraig/ipyevents to add hotkey function to that.
please refer to the short sample (https://github.com/mwcraig/ipyevents/blob/master/doc/Widget%20DOM%20Events.ipynb) and change the handle_event function to the following:
def handle_event(event):
lines = ['{}: {}'.format(k, v) for k, v in event.items()]
#key input value
content = lines[7].split(':')[1]
h.value = content
if h.value.strip() == '0':
add_annotation(options[0])
elif h.value.strip() == '1':
add_annotation(options[1])
Hi,
would you mind adding keyword shortcut support for options?
The text was updated successfully, but these errors were encountered: