<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Setting up customized short cut keys in FA Pages]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=3842</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=3842&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Setting up customized short cut keys in FA Pages.]]></description>
		<lastBuildDate>Fri, 15 Feb 2013 17:14:14 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Setting up customized short cut keys in FA Pages]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=15618#p15618</link>
			<description><![CDATA[<div class="quotebox"><cite>apmuthu wrote:</cite><blockquote><p>The shortcut here is not to merely go to a URL but for a specific (Memo) field in a form to get focus. Will this &quot;&amp;&quot; method do it?</p></blockquote></div><p>Oh, yes you are right. I was misleaded by the original qusetion about &#039;Tab called Memo&#039;. Now I see here Memo is input field, so hot key will not work here.</p><p>Janusz</p>]]></description>
			<author><![CDATA[null@example.com (itronics)]]></author>
			<pubDate>Fri, 15 Feb 2013 17:14:14 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=15618#p15618</guid>
		</item>
		<item>
			<title><![CDATA[Re: Setting up customized short cut keys in FA Pages]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=15612#p15612</link>
			<description><![CDATA[<p>In <strong>empty.po</strong> as well for relevent mods to be ported to other languages if used.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Fri, 15 Feb 2013 08:37:37 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=15612#p15612</guid>
		</item>
		<item>
			<title><![CDATA[Re: Setting up customized short cut keys in FA Pages]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=15607#p15607</link>
			<description><![CDATA[<p>Thanks all for the quick reply. Just a quick question. These modification are done on the page level i.e if i am modifying the Banking and ledger page. The Short cut keys code should be implemented in the Banking and Ledger.php right?<br />I am new to FA and still analyzing the code base how it works hence this question.</p>]]></description>
			<author><![CDATA[null@example.com (lavanyakashyap@gmail.com)]]></author>
			<pubDate>Fri, 15 Feb 2013 05:52:38 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=15607#p15607</guid>
		</item>
		<item>
			<title><![CDATA[Re: Setting up customized short cut keys in FA Pages]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=15606#p15606</link>
			<description><![CDATA[<p>The shortcut here is not to merely go to a URL but for a specific (Memo) field in a form to get focus. Will this &quot;&amp;&quot; method do it?</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Fri, 15 Feb 2013 03:38:29 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=15606#p15606</guid>
		</item>
		<item>
			<title><![CDATA[Re: Setting up customized short cut keys in FA Pages]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=15599#p15599</link>
			<description><![CDATA[<p>You can just add &#039;&amp;&#039; before&nbsp; &#039;M&#039; letter in tab tittle to have it available under Alt-M (Alt is standard&nbsp; hotkey activator in FA.)<br />If you use any localization, you can change it translation *.po file, and use it after *.mo file generation (see other translation related threads on the forum if you are not sure how to do it).</p><p>Janusz</p>]]></description>
			<author><![CDATA[null@example.com (itronics)]]></author>
			<pubDate>Thu, 14 Feb 2013 23:02:53 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=15599#p15599</guid>
		</item>
		<item>
			<title><![CDATA[Re: Setting up customized short cut keys in FA Pages]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=15571#p15571</link>
			<description><![CDATA[<p>Code from <a href="http://stackoverflow.com/questions/5198061/use-jquery-to-move-the-cursor-to-another-field-when-a-certain-character-is-typed">this link</a> may help.</p><p>Ctrl-M is an alternative Carriage Return character (CR) - 0x0D.</p><br /><p><strong>includes/ui/ui_controls.php</strong> has a few shortcut keys defined outside of the functions at lines 443 - 457:<br /></p><div class="codebox"><pre><code>/* Table editor interfaces. Key is editor type
    0 =&gt; url of editor page
    1 =&gt; hotkey code
    2 =&gt; context help
*/
$popup_editors = array(
    &#039;customer&#039; =&gt; array(&#039;/sales/manage/customers.php?debtor_no=&#039;, 
        113,    _(&quot;Customers&quot;), 900, 500),
    &#039;branch&#039; =&gt; array(&#039;/sales/manage/customer_branches.php?SelectedBranch=&#039;, 
        114, _(&quot;Branches&quot;), 900, 700),
    &#039;supplier&#039; =&gt; array(&#039;/purchasing/manage/suppliers.php?supplier_id=&#039;, 
        113, _(&quot;Suppliers&quot;), 900, 700),
    &#039;item&#039; =&gt; array(&#039;/inventory/manage/items.php?stock_id=&#039;, 
        115, _(&quot;Items&quot;), 800, 600)
);</code></pre></div><p>The &quot;F#&quot; function keys are coded in the succeeding function:<br /></p><div class="codebox"><pre><code>/*
    Bind editors for various selectors.
    $type - type of editor
    $input - name of related input field
    $caller - optional function key code (available values F1-F12: 112-123,
        true: default)
*/
function set_editor($type, $input, $caller=true)
{
    global $path_to_root, $Editors, $popup_editors, $Pagehelp;

    $key = $caller===true ? $popup_editors[$type][1] : $caller;

    $Editors[$key] = array( $path_to_root . $popup_editors[$type][0], $input, 
        $popup_editors[$type][3], $popup_editors[$type][4]);
    
    $help = &#039;F&#039; . ($key - 111) . &#039; - &#039;;
    $help .= $popup_editors[$type][2];
    $Pagehelp[] = $help;
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Wed, 13 Feb 2013 09:17:08 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=15571#p15571</guid>
		</item>
		<item>
			<title><![CDATA[Setting up customized short cut keys in FA Pages]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=15561#p15561</link>
			<description><![CDATA[<p>Finance team in my organisation want some extra short cut keys to be enabled apart from the existing ones. <br />For example <br />In the Banking and Ledger page/Payments there is a Tab called &quot;Memo&quot;. <br />I want to put a short cut key to Memo , so that if i press Cntl+M , i should be able to navigate to Memo directly. <br />Can anybody please suggest me how would do this?<br />Can i modify the Banking and Ledger Page.php? <br />Would there be any adverse effects on any other pages and the FA if i do this?</p>]]></description>
			<author><![CDATA[null@example.com (lavanyakashyap@gmail.com)]]></author>
			<pubDate>Wed, 13 Feb 2013 06:13:10 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=15561#p15561</guid>
		</item>
	</channel>
</rss>
