<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Sep 16, 2014 at 11:48 AM, Neil <span dir="ltr"><<a href="mailto:neil@parkwaycc.co.uk" target="_blank">neil@parkwaycc.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Ehsan Akhgari wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I don't think that will give us exactly what we want though.  The desired outcome is for the commands themselves to be *always* enabled, they just need to do nothing if you invoke them in contexts that they are currently disabled in, except for dispatching the events.  But the tricky thing is that other XUL based apps may not want to have these commands always enabled...<br>
</blockquote>
<br></span>
Depends on your definition of enabled. What I was trying to say was that the enabled state as set on the XUL command element (observed by the menuitem or toolbarbutton as appropriate for other XUL based apps) would be ignored by the XBL and native keybindings, they would always attempt to invoke the command directly. This means that when you press Ctrl+V the XBL or native key handler would tell the controller to dispatch the event whether or not the menuitem was enabled.<br></blockquote><div><br></div><div>Yes, I got that part, but what I meant was that we want the menu and toolbar items to also be enabled always in Firefox, since not all users invoke these commands through the keyboard shortcuts.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
If on the other hand you want the Mac menu to flash when you press Ctrl+V on a page when it's not in an editable area, then you've got a lot more work to do, sorry.<br>
</blockquote></div><br></div><div class="gmail_extra">Can you please clarify what additional work that entails?<br><br></div><div class="gmail_extra">Thanks!<br>-- <br><div dir="ltr">Ehsan<br></div>
</div></div>