Community
Participate
Working Groups
There should be a API to limit the maximum number of KeyStrokes that the KeySequenceText will allow in its KeySequence.
Created attachment 5864 [details] Patch for KeysPreferencePage and KeySequenceText KeySequenceText now has a setMaxStrokes, which makes sure that the key sequence it generates is capped at the given value. It exports a constant of INFINITE, which means no capping. KeysPreferencePage sets the cap to 4.
Check the patch and then commit. Change 4 to any value you want.
patch applied. works fine. changed CommandManager to reject KeyBindingDefinitions with strokes longer than 4 (to avoid the Keys preference page truncating selected key sequences)