Skip to content

Disable emoji input on SpinButton right-click

Aayush Shah requested to merge aayushshah22/inkscape:fix-4905 into master

Prevent emojis from being entered into SpinButtons across the application by adding no-emoji rule. This change enhances the UX by ensuring that input fields remain focused on numerical and functional input, especially where emojis are irrelevant and potentially disruptive.

The implementation dynamically sets the NO_EMOJI input hint for all Gtk::SpinButton widgets by extending their functionality to include a method that accesses and modifies it's first child GtkText to include this input hint.

Resolves: #4905

Before:

spinbutton_emoji_after

After:

spinbutton_emoji_before

Edited by PBS

Merge request reports